Optional
intFields: Set<string>Optional
abbreviations: Map<string, string>Registers a callback function to receive performance events.
Calculates and adds queue time measurement for given performance event.
Optional
correlationId: stringOptional
queueTime: numberOptional
manuallyCompleted: booleanindicator for manually completed queue measurements
Calculates the difference between current time and time when function was queued. Note: It is possible to have 0 as the queue time if the current time and the queued time was the same.
Emits events to all registered callbacks.
Optional
correlationId: stringStops measuring the performance for an operation. Should only be called directly by PerformanceClient classes, as consumers should instead use the function returned by startMeasurement. Adds a new field named as "[event name]DurationMs" for sub-measurements, completes and emits an event otherwise.
Optional
error: unknownAdds pre-queue time to preQueueTimeByCorrelationId map.
Optional
correlationId: stringStarts measuring performance for a given operation. Returns a function that should be used to end the measurement. Also captures browser page visibilityState.
Optional
correlationId: stringStarts and returns an platform-specific implementation of IPerformanceMeasurement. Note: this function can be changed to abstract at the next major version bump.
This method will be removed in the next major version
Generated using TypeDoc
Saves extra information to be emitted when the measurements are flushed