Struct FramesMeasurement.ScopedFrameTimeMeasurement
Provides a way to measure frame time within a scope.
Inherited Members
Namespace: Unity.PerformanceTesting.Measurements
Syntax
public struct ScopedFrameTimeMeasurement : IDisposable
Constructors
ScopedFrameTimeMeasurement(String)
Initializes a scoped frame time measurement.
Declaration
public ScopedFrameTimeMeasurement(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Sample group name used to store measurements. |
ScopedFrameTimeMeasurement(SampleGroup)
Initializes a scoped frame time measurement.
Declaration
public ScopedFrameTimeMeasurement(SampleGroup sampleGroup)
Parameters
Type | Name | Description |
---|---|---|
SampleGroup | sampleGroup | Sample group used to store measurements. |
Methods
Dispose()
Stops scoped frame time measurement and adds it to provided sample group.
Declaration
public void Dispose()