Class Profiler
Represents a profiler that can measure time between calls distinguished by identifiers
public class Profiler
- Inheritance
-
objectProfiler
Properties
Measurements
Gets a dictionary containing measurements by their identifiers
public Dictionary<string, ProfilingMeasurement> Measurements { get; set; }
Property Value
Name
Gets the name of this profiler
public string Name { get; }
Property Value
Plugin
Gets the plugin this profiler belongs to
public Plugin Plugin { get; }
Property Value
Methods
ClearMeasurements(string)
Clears measurements with the the provided identifier
public void ClearMeasurements(string identifier)
Parameters
identifierstring
StartMeasurement(string)
Starts measuring time for the provided identifier
public void StartMeasurement(string identifier)
Parameters
identifierstringA unique identifier for this measurement
StopMeasurement(string)
Stops measuring time for the provided identifier
public long StopMeasurement(string identifier)
Parameters
identifierstringA unique identifier for this measurement
Returns
- long
The number of ticks that passed since the StartMeasurement(string) call with the same identifier