|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.util.profiling.UtilTimerStack
public class UtilTimerStack
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_MEMORY_PROPERTY
System property that specifies by default whether memory should be profiled or not. |
static java.lang.String |
ACTIVATE_PROPERTY
System property that specifies by default whether this timer should be used or not. |
static java.lang.String |
MIN_TIME
System property that controls the default threshold time below which a profiled event should not be reported |
static java.lang.String |
MIN_TOTAL_TIME
System property that controls the default threshold time below which an entire stack of profiled events should not be reported. |
| Constructor Summary | |
|---|---|
UtilTimerStack()
|
|
| Method Summary | |
|---|---|
static boolean |
isActive()
|
static boolean |
isProfileMemory()
|
static void |
pop(java.lang.String name)
|
static void |
push(java.lang.String name)
|
static void |
setActive(boolean active)
|
static void |
setLogger(UtilTimerLogger logger)
|
static void |
setMinTime(long minTime)
|
static void |
setMinTotalTime(long minTotalTime)
|
static void |
setProfileMemory(boolean active)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ACTIVATE_PROPERTY
public static final java.lang.String ACTIVATE_MEMORY_PROPERTY
public static final java.lang.String MIN_TIME
public static final java.lang.String MIN_TOTAL_TIME
| Constructor Detail |
|---|
public UtilTimerStack()
| Method Detail |
|---|
public static void push(java.lang.String name)
public static void pop(java.lang.String name)
public static boolean isActive()
public static void setMinTime(long minTime)
public static void setMinTotalTime(long minTotalTime)
public static boolean isProfileMemory()
public static void setActive(boolean active)
public static void setProfileMemory(boolean active)
public static void setLogger(UtilTimerLogger logger)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||