Class ProfilerSamplingEvent
Event for sampling a piece of the code
Inherited Members
Namespace: Unity.Simulation
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. |