|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.util.ThreadTracker
public class ThreadTracker
Debugging tool to track entry points through code, useful to see runtime call paths
To use, add to a method as follows:
public void someMethod() {
ThreadTracker.track("someMethod");
...
}
and at some stage call result
to get a LOG
output of the callers with an associated call count
Constructor Summary | |
---|---|
ThreadTracker()
|
Method Summary | |
---|---|
static void |
result()
output the result of stack trace capture to the log |
static void |
track(java.lang.String name)
track the stack trace of callers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadTracker()
Method Detail |
---|
public static void track(java.lang.String name)
name
- the method being trackedpublic static void result()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |