public interface Timer
Timer timer = Timers.timer("my-timer");
try (Ticker ignored = timer.start("foo", "bar")) {
// profiled code block
}
| Modifier and Type | Method and Description |
|---|---|
Ticker |
start(Object... callParameters)
Starts a
ticker for a profiled code block. |
default Ticker |
start(String... callParameters)
Starts a
ticker for a profiled code block. |
@Nonnull default Ticker start(@Nullable String... callParameters)
ticker for a profiled code block. The optional callParameters are
appended to the name that was provided when the timer was created.
Call parameters are useful if you want to use a pre-defined timer, but include call parameters in the profiling trace.
callParameters - the call parameters@Nonnull Ticker start(@Nullable Object... callParameters)
ticker for a profiled code block. The optional callParameters are
appended to the name that was provided when the timer was created.
Call parameters are useful if you want to use a pre-defined timer, but include call parameters in the profiling trace.
callParameters - the call parametersCopyright © 2019 Atlassian. All rights reserved.