Optional
contextA specific context of the application in which an activity was measured.
Results in logs being emitted with a "[
Optional
defaultAn optional logging level at which to emit the log message. The default value is LogLevel.INFO.
Optional
storeFlag to indicate whether the stopwatch should store measurement results for later retrieval. For example the cache can be used to retrieve measurements which were taken during startup before a listener had a chance to register.
Optional
thresholdSome measurements are measured against a threshold (in millis) that they should not exceed. If omitted, the implied threshold is unlimited time (no threshold).
Optional configuration of a Measurement specified at the time of its creation.