Package com.atlassian.util.profiling
Interface Ticker
- All Superinterfaces:
AutoCloseable
An object used to profile and/or monitor of a code block, that can be used to
mark the end of the
code block. Ticker extends AutoCloseable to allow for try-with-resources style usage:
try (Ticker ignored = Timers.start("my-timer")) {
// monitored code block here
}
or
try (Ticker ignored = Metrics.start("my-metric")) {
// monitored code block here
}
- Since:
- 3.0
-
Field Summary
Fields -
Method Summary
-
Field Details
-
NO_OP
Simple no-opTickerimplementation
-
-
Method Details
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-