Package org.apache.activemq.util
Class ThreadTracker
- java.lang.Object
-
- org.apache.activemq.util.ThreadTracker
-
public class ThreadTracker extends Object
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 callresult
to get a LOG output of the callers with an associated call count
-
-
Constructor Summary
Constructors Constructor Description ThreadTracker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
result()
output the result of stack trace capture to the logstatic void
track(String name)
track the stack trace of callers
-
-
-
Method Detail
-
track
public static void track(String name)
track the stack trace of callers- Parameters:
name
- the method being tracked
-
result
public static void result()
output the result of stack trace capture to the log
-
-