This defines an internal performance manager for tracking and reporting the internal performance of the SDK -- It does not represent or report any event to the server.

Hierarchy

  • PerfManager

Implements

Constructors

Methods

Constructors

  • General bucket used for execution context set and retrieved via setCtx() and getCtx. Defined as private so it can be visualized via the DebugPlugin

    Parameters

    Returns PerfManager

Methods

  • Create a new event and start timing, the manager may return null/undefined to indicate that it does not want to monitor this source event.

    Parameters

    • src: string

      The source name of the event

    • Optional payload: any
    • Optional isAsync: boolean

      Is the event occurring from a async event

    Returns IPerfEvent

  • Complete the perfEvent and fire any notifications.

    Parameters

    • perfEvent: IPerfEvent

      Fire the event which will also complete the passed event

    Returns void

  • Get the execution context value

    Parameters

    • key: string

      The context key

    Returns any

  • Set an execution context value

    Parameters

    • key: string

      The context key name

    • value: any

      The value

    Returns void

Generated using TypeDoc