Artemis Artemis
Artemis Artemis

Search Results for

    Class Profiler

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

    Inheritance
    object
    Profiler
    Namespace: Artemis.Core
    Assembly: Artemis.Core.dll
    Syntax
    public class Profiler

    Properties

    Measurements

    Gets a dictionary containing measurements by their identifiers

    Declaration
    public Dictionary<string, ProfilingMeasurement> Measurements { get; set; }
    Property Value
    Type Description
    Dictionary<string, ProfilingMeasurement>

    Name

    Gets the name of this profiler

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    Plugin

    Gets the plugin this profiler belongs to

    Declaration
    public Plugin Plugin { get; }
    Property Value
    Type Description
    Plugin

    Methods

    ClearMeasurements(string)

    Clears measurements with the the provided identifier

    Declaration
    public void ClearMeasurements(string identifier)
    Parameters
    Type Name Description
    string identifier

    StartMeasurement(string)

    Starts measuring time for the provided identifier

    Declaration
    public void StartMeasurement(string identifier)
    Parameters
    Type Name Description
    string identifier

    A unique identifier for this measurement

    StopMeasurement(string)

    Stops measuring time for the provided identifier

    Declaration
    public long StopMeasurement(string identifier)
    Parameters
    Type Name Description
    string identifier

    A unique identifier for this measurement

    Returns
    Type Description
    long

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

    Content is available under the PolyForm Noncommercial License, by Artemis RGB.