public class BambooProfilingUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getTimes(Map<Object,Long> profiledCalls,
int minimumDurationMs) |
static boolean |
isUtilTimerStackActive() |
static <T> T |
withUtilTimerStack(String message,
BambooCallables.NotThrowing<T> callable)
Deprecated.
since 6.10 use
Timers directly |
static <T,E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> |
withUtilTimerStack(String message,
BambooCallables.ThrowingX<T,E1,E2,E3> callable)
Deprecated.
since 6.10 use
Timers directly |
static <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> |
withUtilTimerStack(String message,
BambooRunnables.ThrowingX<E1,E2,E3> runnable)
Deprecated.
since 6.10 use
Timers directly |
static <T> T |
withUtilTimerStack(String message,
Callable<T> callable)
Deprecated.
since 6.10 use
Timers directly |
static void |
withUtilTimerStack(String message,
Runnable runnable)
Deprecated.
since 6.10 use
Timers directly |
static <T> T |
withUtilTimerStack(String message,
Supplier<T> supplier)
Deprecated.
since 6.10 use
Timers directly |
@Deprecated public static <T> T withUtilTimerStack(@NotNull String message, Callable<T> callable) throws Exception
Timers
directlyTimers.start(String)
.T
- Type of value returned by callablemessage
- Message to be put to UtilTimerStackcallable
- Code to be executedException
@Deprecated public static <T> T withUtilTimerStack(@NotNull String message, BambooCallables.NotThrowing<T> callable)
Timers
directly@Deprecated public static <T,E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> T withUtilTimerStack(@NotNull String message, @NotNull BambooCallables.ThrowingX<T,E1,E2,E3> callable) throws E1 extends Throwable, E2 extends Throwable, E3 extends Throwable
Timers
directlyE1 extends Throwable
@Deprecated public static <T> T withUtilTimerStack(@NotNull String message, Supplier<T> supplier)
Timers
directly@Deprecated public static <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> void withUtilTimerStack(@NotNull String message, @NotNull BambooRunnables.ThrowingX<E1,E2,E3> runnable) throws E1 extends Throwable, E2 extends Throwable, E3 extends Throwable
Timers
directlyE1 extends Throwable
@Deprecated public static void withUtilTimerStack(@NotNull String message, Runnable runnable)
Timers
directlyTimers.start(String)
.message
- Message to be put to UtilTimerStackrunnable
- Code to be executedpublic static boolean isUtilTimerStackActive()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.