• Helper function to wrap a function with a perf event

    Type Parameters

    • T

    Parameters

    • mgrSource: IPerfManagerProvider | IPerfManager

      The Performance Manager or a Performance provider source (may be null)

    • getSource: (() => string)

      The callback to create the source name for the event (if perf monitoring is enabled)

        • (): string
        • Returns string

    • func: ((perfEvt?) => T)

      The function to call and measure

        • (perfEvt?): T
        • Parameters

          Returns T

    • Optional details: (() => any)

      A function to return the payload details

        • (): any
        • Returns any

    • Optional isAsync: boolean

      Is the event / function being call asynchronously or synchronously

    Returns T

Generated using TypeDoc