Class Sample
Stores per-thread timing state for a named sample captured by ProfilerSamplingEvent.
Inherited Members
Namespace: Unity.SimulationPro
Assembly: Unity.SimulationPro.Capture.dll
Syntax
[Serializable]
public class Sample
Fields
sampleValues
The queue of elapsed-time measurements recorded since the last dispatch.
Declaration
[JsonIgnore]
public Queue<double> sampleValues
Field Value
| Type | Description |
|---|---|
| Queue<double> |
stopwatch
The stopwatch used to measure elapsed time between BeginSample and EndSample.
Declaration
[JsonIgnore]
public Stopwatch stopwatch
Field Value
| Type | Description |
|---|---|
| Stopwatch |
threadID
The managed thread ID of the thread that called BeginSample(string).
Declaration
[JsonIgnore]
public int threadID
Field Value
| Type | Description |
|---|---|
| int |
timeSinceStartup
The value of Time.realtimeSinceStartup at the time this sample was last recorded.
Declaration
public float timeSinceStartup
Field Value
| Type | Description |
|---|---|
| float |
value
The most recent elapsed time in seconds for this sample.
Declaration
public double value
Field Value
| Type | Description |
|---|---|
| double |