Class BambooProfilingUtils


  • public class BambooProfilingUtils
    extends Object
    • Method Detail

      • 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,
                                               Supplier<T> supplier)
        Deprecated.
        since 6.10 use Timers directly
      • 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)