Options
All
  • Public
  • Public/Protected
  • All
Menu

Performance timer

Hierarchy

  • PerfTimer

Index

Methods

  • markTimestamp(name: string, additional?: Dictionary<unknown>): void
  • Measures difference between the current moment and the time origin of a corresponding timers runner

    Parameters

    • name: string

      full name of the metrics

    • Optional additional: Dictionary<unknown>

    Returns void

  • Returns a new instance of the performance timer but with the passed suffix

    example
    // `timer` has a namespace "components"
    const timer = getTimer('components');

    // `newTimer` has a namespace "components.button"
    const newTimer = timer.namespace('button');

    Parameters

    • ns: string

      namespace suffix

    Returns PerfTimer