Skip to main content

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>