Class ProfilingMeasurement
Represents a set of profiling measurements
public class ProfilingMeasurement
- Inheritance
-
objectProfilingMeasurement
Properties
Identifier
Gets the unique identifier of this measurement
public string Identifier { get; }
Property Value
Measurements
Gets the last 1000 measurements
public long[] Measurements { get; }
Property Value
- long[]
Methods
GetAverage()
Gets the average time of the last 1000 measurements
public TimeSpan GetAverage()
Returns
GetCount()
Gets the number of measurements taken
public ulong GetCount()
Returns
GetLast()
Gets the last measured time
public TimeSpan GetLast()
Returns
GetMax()
Gets the max time of the last 1000 measurements
public TimeSpan GetMax()
Returns
GetMin()
Gets the min time of the last 1000 measurements
public TimeSpan GetMin()
Returns
GetPercentile(double)
Gets the nth percentile of the last 1000 measurements
public TimeSpan GetPercentile(double percentile)
Parameters
percentiledouble
Returns
Start()
Starts measuring time until Stop(long) is called
public void Start()
Stop(long)
Stops measuring time and stores the time passed in the Measurements list
public long Stop(long correction = 0)
Parameters
correctionlongAn optional correction in ticks to subtract from the measurement