Skip to main content

PerformanceTrackerOptions

API Docs


Interface: PerformanceTrackerOptions

Defined in: src/utilities/metrics/performanceTracker.ts:90

Options for creating a performance tracker.

Properties​

__slowArray?​

optional __slowArray: object[]

Defined in: src/utilities/metrics/performanceTracker.ts:102

Internal

Optional custom slow array for testing purposes. If provided, this array will be used instead of creating a new one.

  • For testing only

ms​

ms: number

op​

op: string


slowMs?​

optional slowMs: number

Defined in: src/utilities/metrics/performanceTracker.ts:96

Threshold in milliseconds for considering an operation as slow. Operations exceeding this threshold will be added to the slow array. Defaults to 200ms if not provided.