withPerformanceMonitoring
FitFileViewer - API Documentation v30.0.1
FitFileViewer - API Documentation / utils/debug/stateDevTools / withPerformanceMonitoring
Function: withPerformanceMonitoring()
withPerformanceMonitoring<
Args,T>(name:string,fn: (...args:Args) =>T|Promise<T>): (...args:Args) =>Promise<T>
Defined in: utils/debug/stateDevTools.ts:699
Create a performance-monitored version of a callable
Type Parametersβ
Argsβ
Args extends unknown[]
Callable argument tuple.
Tβ
T
Callable result type.
Parametersβ
nameβ
string
Callable name for monitoring.
fnβ
(...args: Args) => T | Promise<T>
Callable to wrap.
Returnsβ
Wrapped callable.
(...args: Args) => Promise<T>