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) |
static <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> |
withUtilTimerStack(String message,
BambooRunnables.ThrowingX<E1,E2,E3> runnable) |
static <T> T |
withUtilTimerStack(String message,
Callable<T> callable)
Wrap a piece of logic with calls to
@push and UtilTimerStack@pop |
static void |
withUtilTimerStack(String message,
Runnable runnable)
Wrap a piece of logic with calls to
@push and UtilTimerStack@pop |
static <T> T |
withUtilTimerStack(String message,
Supplier<T> supplier) |
public static <T> T withUtilTimerStack(@NotNull String message, Callable<T> callable) throws Exception
@push
and UtilTimerStack@pop
T
- Type of value returned by callablemessage
- Message to be put to UtilTimerStackcallable
- Code to be executedException
public static <T> T withUtilTimerStack(@NotNull String message, BambooCallables.NotThrowing<T> callable)
public static <T> T withUtilTimerStack(@NotNull String message, Supplier<T> supplier)
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
E1 extends Throwable
public static void withUtilTimerStack(@NotNull String message, Runnable runnable)
@push
and UtilTimerStack@pop
message
- Message to be put to UtilTimerStackrunnable
- Code to be executedpublic static boolean isUtilTimerStackActive()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.