The measured callback.
Optional
handlers: MeasureLifecycleHandlersCallbacks that are invoked at different lifecycle phases.
Optional
options: MeasureOptionsOther measurement options.
Optional
durationHistogram: HistogramThe histogram to store performance measurements.
Optional
memoryHistogram: HistogramGenerated using TypeDoc
Measures callback performance and stores measurements in a histogram.
Returns
The promise that is resolved with the results' histogram when measurements are completed.