A singleton class for collecting and managing performance data. All entries must have a unique name. Entries are stored in a Map.

Methods

  • Clears all collected performance entries.

    Returns void

  • Adds or replaces a performance entry by name.

    Type Parameters

    • T

      The type of the performance data.

    Parameters

    Returns void

  • Retrieves all entries as an array.

    Returns AcCmPerformanceEntry<unknown>[]

    A copy of all performance entries.

  • Gets a single entry by name.

    Parameters

    • name: string

      The unique name of the entry.

    Returns undefined | AcCmPerformanceEntry<unknown>

    The matching entry or undefined.

  • Logs all performance entries to the console using their format method.

    Returns void

  • Removes an entry by name.

    Parameters

    • name: string

      The name of the entry to remove.

    Returns boolean

    True if the entry was removed; false if not found.