Class UtilTimerStack

java.lang.Object
com.atlassian.util.profiling.UtilTimerStack

@Deprecated public class UtilTimerStack extends Object
Deprecated.
in 3.0 to be removed in 5.0. Use instead
A timer stack.

Usage:

 String logMessage = "Log message";
 UtilTimerStack.push(logMessage);
 try {
     //do some code
 } finally {
     UtilTimerStack.pop(logMessage); //this needs to be the same text as above
 }
 
  • Constructor Details

    • UtilTimerStack

      public UtilTimerStack()
      Deprecated.
  • Method Details

    • add

      public static void add(ProfilingStrategy strategy)
      Deprecated.
    • getDefaultStrategy

      public static StackProfilingStrategy getDefaultStrategy()
      Deprecated.
    • isActive

      public static boolean isActive()
      Deprecated.
    • pop

      public static void pop(String name)
      Deprecated.
    • push

      public static void push(String name)
      Deprecated.
    • remove

      public static void remove(ProfilingStrategy strategy)
      Deprecated.