The type of observer stored in the map. The observer must be an ICollectionObserver type with entries adhering to the IPerformanceEntry interface.
Data collected for all functions that were monitored with the PerformanceApi.watch function.
Data collected for all measurements taken through the PerformanceApi.measure function.
Represents the valid types that may be registered in the environment.
A string mapping to the valid defaults types.
A function that will be used to validate the environmental variable. Only intended to be used by the EnvironmentManager class.
Exported so tests can make use of the global type defined here.
Environment key prefix for the max history value. Max history refers to the max number of log entries to keep when performance is enabled.
Environment key prefix for where the logs are saved.
This is the environmental prefix that will be added to any configuration settings for performance.
Exported singleton of the EnvironmentManager.
Symbol used to ensure uniqueness across all possible instances of this package.
An instance of a PerformanceApiManager. Public functionality is exported under this name.
Definition of the global typings needed for this class.
Get a constant file path for a given history item index.
The directory of the file
The index of the file in the history
The formatted file name that will be saved
Save metrics into the next log file.
Upon execution this function will first roll any logs based on the value present within environmental ENV_IO_MAX_HISTORY variable. The directory that is checked will be determined from the ENV_IO_SAVE_DIR value.
The object data to save in a file.
Generated using TypeDoc
A type that generically defines all collection observer maps that are defined to the Performance API.