Function runMeasureLifecycle

  • Measures callback performance and stores measurements in a histogram.

    Returns

    The promise that is resolved with the results' histogram when measurements are completed.

    Parameters

    • cb: (() => unknown)

      The measured callback.

        • (): unknown
        • Returns unknown

    • Optional handlers: MeasureLifecycleHandlers

      Callbacks that are invoked at different lifecycle phases.

    • Optional options: MeasureOptions

      Other measurement options.

    • Optional durationHistogram: Histogram

      The histogram to store performance measurements.

    • Optional memoryHistogram: Histogram

    Returns Promise<RunMeasureResult>

Generated using TypeDoc