Struct ProfilerMeasurement
Provides a way to measure profiler markers.
Inherited Members
Namespace: Unity.PerformanceTesting.Measurements
Syntax
public struct ProfilerMeasurement : IDisposable
Constructors
ProfilerMeasurement(String[])
Initializes a profiler marker measurement.
Declaration
public ProfilerMeasurement(string[] profilerMarkers)
Parameters
Type | Name | Description |
---|---|---|
String[] | profilerMarkers | List of profiler markers to be measured. |
ProfilerMeasurement(SampleGroup[])
Initializes a profiler marker measurement.
Declaration
public ProfilerMeasurement(SampleGroup[] sampleGroups)
Parameters
Type | Name | Description |
---|---|---|
SampleGroup[] | sampleGroups | List of sample groups with name set to match profiler markers to be measured. |
Methods
Dispose()
Stops profiler marker measurement and adds them to the provided sample group.
Declaration
public void Dispose()