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 String
getTimes(@NotNull Map<Object,Long> profiledCalls, int minimumDurationMs)
static boolean
isUtilTimerStackActive()
static <T> T
withUtilTimerStack(@NotNull String message, BambooCallables.NotThrowing<T> callable)
Deprecated.since 6.10 useTimers
directlystatic <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 useTimers
directlystatic <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable>
voidwithUtilTimerStack(@NotNull String message, BambooRunnables.ThrowingX<E1,E2,E3> runnable)
Deprecated.since 6.10 useTimers
directlystatic void
withUtilTimerStack(@NotNull String message, Runnable runnable)
Deprecated.since 6.10 useTimers
directlystatic <T> T
withUtilTimerStack(@NotNull String message, Callable<T> callable)
Deprecated.since 6.10 useTimers
directlystatic <T> T
withUtilTimerStack(@NotNull String message, Supplier<T> supplier)
Deprecated.since 6.10 useTimers
directly
-
-
-
Method Detail
-
withUtilTimerStack
@Deprecated public static <T> T withUtilTimerStack(@NotNull @NotNull String message, Callable<T> callable) throws Exception
Deprecated.since 6.10 useTimers
directlyWrap 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 useTimers
directly
-
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 useTimers
directly- Throws:
E1 extends Throwable
-
withUtilTimerStack
@Deprecated public static <T> T withUtilTimerStack(@NotNull @NotNull String message, Supplier<T> supplier)
Deprecated.since 6.10 useTimers
directly
-
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 useTimers
directly- Throws:
E1 extends Throwable
-
withUtilTimerStack
@Deprecated public static void withUtilTimerStack(@NotNull @NotNull String message, Runnable runnable)
Deprecated.since 6.10 useTimers
directlyWrap 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()
-
-