Methods
createReportProducer
- createReportProducer(onReport: ((report: MetricsReport) => void), interval: number, abortSignal: AbortSignal, formatNumber?: ((value: number) => string)): void
-
Parameters
-
onReport: ((report: MetricsReport) => void)
-
interval: number
-
abortSignal: AbortSignal
-
Optional
formatNumber: ((value: number) => string)
-
- (value: number): string
-
Returns string
Returns void
getMetric
- getMetric(id: string): undefined | Metric
-
Returns undefined | Metric