Abstract
Protected
_storedProtected
Readonly
defaultProtected
Readonly
loggerProtected
onProtected
atOptional
levelOverride: LogLevelOptional
optionalArgs: any[]Protected
createOptional
options: MeasurementOptionsProtected
logProtected
logProtected
mergeAbstract
startCreate a Measurement that will compute its elapsed time when logged.
the measurement name
Optional
options: MeasurementOptionsoptional configuration of the new measurement
a self-timing measurement
Wrap an asynchronous function in a Measurement that logs itself on completion.
If obtaining and awaiting the computation
runs too long according to the threshold
set in the options
, then the log message is a warning, otherwise a debug log.
the name of the measurement to wrap around the function
a description of what the function does, to be included in the log
a supplier of the asynchronous function to wrap
Optional
options: MeasurementOptionsoptional addition configuration as for measure
the wrapped computation
A factory of Measurements for performance logging.