Package com.atlassian.util.profiling
Interface Timer
@Internal
public interface Timer
Object that is used to add profiling around blocks of code
Timer timer = Timers.timer("my-timer");
try (Ticker ignored = timer.start("foo", "bar")) {
// profiled code block
}
- Since:
- 3.0
-
Method Summary
-
Method Details
-
start
Starts atickerfor a profiled code block. The optionalcallParametersare appended to the name that was provided when the timer wascreated.Call parameters are useful if you want to use a pre-defined timer, but include call parameters in the profiling trace.
- Parameters:
callParameters- the call parameters- Returns:
- the ticker
-
start
Starts atickerfor a profiled code block. The optionalcallParametersare appended to the name that was provided when the timer wascreated.Call parameters are useful if you want to use a pre-defined timer, but include call parameters in the profiling trace.
- Parameters:
callParameters- the call parameters- Returns:
- the ticker
- Since:
- 3.1
-