Package com.atlassian.util.profiling
Interface LongRunningMetricTimer
Object that is used to collect time metrics about the execution a block of code.
LongRunningMetricTimer timer = Metrics.longRunningTimer("my-metric");
try (Ticker ignored = timer.start()) {
// monitored code block
}
- Since:
- 3.5.0
-
Method Summary
-
Method Details
-
start
Starts atickerfor a monitored code block- Returns:
- the ticker
-