Package com.atlassian.bamboo.util
Class BambooProfilingUtils
- java.lang.Object
-
- com.atlassian.bamboo.util.BambooProfilingUtils
-
public class BambooProfilingUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringgetTimes(@NotNull Map<Object,Long> profiledCalls, int minimumDurationMs)static booleanisUtilTimerStackActive()static <T> TwithUtilTimerStack(@NotNull String message, BambooCallables.NotThrowing<T> callable)Deprecated.since 6.10 useTimersdirectlystatic <T,E1 extends Throwable,E2 extends Throwable,E3 extends Throwable>
TwithUtilTimerStack(@NotNull String message, BambooCallables.ThrowingX<T,E1,E2,E3> callable)Deprecated.since 6.10 useTimersdirectlystatic <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable>
voidwithUtilTimerStack(@NotNull String message, BambooRunnables.ThrowingX<E1,E2,E3> runnable)Deprecated.since 6.10 useTimersdirectlystatic voidwithUtilTimerStack(@NotNull String message, Runnable runnable)Deprecated.since 6.10 useTimersdirectlystatic <T> TwithUtilTimerStack(@NotNull String message, Callable<T> callable)Deprecated.since 6.10 useTimersdirectlystatic <T> TwithUtilTimerStack(@NotNull String message, Supplier<T> supplier)Deprecated.since 6.10 useTimersdirectly
-
-
-
Method Detail
-
withUtilTimerStack
@Deprecated public static <T> T withUtilTimerStack(@NotNull @NotNull String message, Callable<T> callable) throws Exception
Deprecated.since 6.10 useTimersdirectlyWrap a piece of logic with calls toTimers.start(String).- Type Parameters:
T- Type of value returned by callable- Parameters:
message- Message to be put to UtilTimerStackcallable- Code to be executed- Returns:
- Value returned by callable
- Throws:
Exception
-
withUtilTimerStack
@Deprecated public static <T> T withUtilTimerStack(@NotNull @NotNull String message, BambooCallables.NotThrowing<T> callable)
Deprecated.since 6.10 useTimersdirectly
-
withUtilTimerStack
@Deprecated public static <T,E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> T withUtilTimerStack(@NotNull @NotNull String message, @NotNull BambooCallables.ThrowingX<T,E1,E2,E3> callable) throws E1 extends Throwable, E2 extends Throwable, E3 extends Throwable
Deprecated.since 6.10 useTimersdirectly- Throws:
E1 extends Throwable
-
withUtilTimerStack
@Deprecated public static <T> T withUtilTimerStack(@NotNull @NotNull String message, Supplier<T> supplier)
Deprecated.since 6.10 useTimersdirectly
-
withUtilTimerStack
@Deprecated public static <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> void withUtilTimerStack(@NotNull @NotNull String message, @NotNull BambooRunnables.ThrowingX<E1,E2,E3> runnable) throws E1 extends Throwable, E2 extends Throwable, E3 extends Throwable
Deprecated.since 6.10 useTimersdirectly- Throws:
E1 extends Throwable
-
withUtilTimerStack
@Deprecated public static void withUtilTimerStack(@NotNull @NotNull String message, Runnable runnable)
Deprecated.since 6.10 useTimersdirectlyWrap a piece of logic with calls toTimers.start(String).- Parameters:
message- Message to be put to UtilTimerStackrunnable- Code to be executed
-
isUtilTimerStackActive
public static boolean isUtilTimerStackActive()
-
-