Class ProfilerSamplingEvent
Event for sampling a piece of the code
Inherited Members
Namespace: Unity.Simulation
Assembly: Unity.Simulation.Core.dll
Syntax
public class ProfilerSamplingEvent : EventBase
Constructors
ProfilerSamplingEvent(string)
Declaration
public ProfilerSamplingEvent(string eventName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | eventName |
Fields
AggregatedSamples
Declaration
public Dictionary<string, AggregatedSample> AggregatedSamples
Field Value
| Type | Description |
|---|---|
| Dictionary<string, AggregatedSample> |
Methods
BeginSample(string)
Start sampling. This start the stopwatch for the provided sample name.
Declaration
public void BeginSample(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Name of the sample that is uniquely identifiable in the associated collector. |
EndSample(string)
End sample. This stops the stopwatch for provided sample name and captures the elasped time.
Declaration
public void EndSample(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Name of the sample used to begin sample. |