com.atlassian.util.profiling
Class UtilTimerStack

java.lang.Object
  extended bycom.atlassian.util.profiling.UtilTimerStack

public class UtilTimerStack
extends java.lang.Object

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
 }
 


Field Summary
static java.lang.String ACTIVATE_PROPERTY
          System property that controls whether this timer should be used or not.
static java.lang.String MIN_TIME
           
 
Constructor Summary
UtilTimerStack()
           
 
Method Summary
static boolean isActive()
           
static void pop(java.lang.String name)
           
static void push(java.lang.String name)
           
static void setActive(boolean active)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIVATE_PROPERTY

public static final java.lang.String ACTIVATE_PROPERTY
System property that controls whether this timer should be used or not. Set to "true" activates the timer. Set to "false" to disactivate.

See Also:
Constant Field Values

MIN_TIME

public static final java.lang.String MIN_TIME
See Also:
Constant Field Values
Constructor Detail

UtilTimerStack

public UtilTimerStack()
Method Detail

push

public static void push(java.lang.String name)

pop

public static void pop(java.lang.String name)

isActive

public static boolean isActive()

setActive

public static void setActive(boolean active)


Copyright © Atlassian Software Systems Pty Ltd. All Rights Reserved.