• 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?: IPerfEvent) => T)

      The function to call and measure

    • Optionaldetails: (() => any)

      A function to return the payload details

        • (): any
        • Returns any

    • OptionalisAsync: boolean

      Is the event / function being call asynchronously or synchronously

    Returns T