Class BambooProfilingUtils

java.lang.Object
com.atlassian.bamboo.util.BambooProfilingUtils

public class BambooProfilingUtils extends Object
  • Method Details

    • withUtilTimerStack

      @Deprecated public static <T> T withUtilTimerStack(@NotNull @NotNull String message, Callable<T> callable) throws Exception
      Deprecated.
      since 6.10 use Timers directly
      Wrap a piece of logic with calls to Timers.start(String).
      Type Parameters:
      T - Type of value returned by callable
      Parameters:
      message - Message to be put to UtilTimerStack
      callable - 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 use Timers 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, E2, E3
      Deprecated.
      since 6.10 use Timers directly
      Throws:
      E1 extends Throwable
      E2 extends Throwable
      E3 extends Throwable
    • withUtilTimerStack

      @Deprecated public static <T> T withUtilTimerStack(@NotNull @NotNull String message, Supplier<T> supplier)
      Deprecated.
      since 6.10 use Timers 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, E2, E3
      Deprecated.
      since 6.10 use Timers directly
      Throws:
      E1 extends Throwable
      E2 extends Throwable
      E3 extends Throwable
    • withUtilTimerStack

      @Deprecated public static void withUtilTimerStack(@NotNull @NotNull String message, Runnable runnable)
      Deprecated.
      since 6.10 use Timers directly
      Wrap a piece of logic with calls to Timers.start(String).
      Parameters:
      message - Message to be put to UtilTimerStack
      runnable - Code to be executed
    • isUtilTimerStackActive

      public static boolean isUtilTimerStackActive()
    • getTimes

      public static String getTimes(@NotNull @NotNull Map<Object,Long> profiledCalls, int minimumDurationMs)