Table of Contents

Class Profiler

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents a profiler that can measure time between calls distinguished by identifiers

public class Profiler
Inheritance
object
Profiler

Properties

Measurements

Gets a dictionary containing measurements by their identifiers

public Dictionary<string, ProfilingMeasurement> Measurements { get; set; }

Property Value

Dictionary<string, ProfilingMeasurement>

Name

Gets the name of this profiler

public string Name { get; }

Property Value

string

Plugin

Gets the plugin this profiler belongs to

public Plugin Plugin { get; }

Property Value

Plugin

Methods

ClearMeasurements(string)

Clears measurements with the the provided identifier

public void ClearMeasurements(string identifier)

Parameters

identifier string

StartMeasurement(string)

Starts measuring time for the provided identifier

public void StartMeasurement(string identifier)

Parameters

identifier string

A unique identifier for this measurement

StopMeasurement(string)

Stops measuring time for the provided identifier

public long StopMeasurement(string identifier)

Parameters

identifier string

A unique identifier for this measurement

Returns

long

The number of ticks that passed since the StartMeasurement(string) call with the same identifier