Vixen
02b45cc4
csharp
public sealed class LocalProfileSource

The process the editor is running in.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

A wrapper over four static members rather than a layer: what it buys is that the panel has one shape for "this process" and "a phone on the desk", and that a test can hand the model a source with samples in it and no static state at all.

Fields and properties (3)

  • public string Name

    What the dropdown calls it — "Editor", "Game", the name of an attached device.

  • public bool IsRecording

    Whether this source is recording at all.

  • public long DroppedSampleCount

    How many samples went over the side before anybody collected them.

Methods (2)

  • public LocalProfileSource(string name)

    Names a source over this process's rings.

  • public ProfilerThreadSamples[] Collect()

    Takes whatever has been sampled since the last call, emptying the rings.

Used by (1)

  • DiagnosticsModuleVixen.Editor.Diagnostics