org.gridkit.jvmtool.stacktrace
Class ThreadDumpSampler
java.lang.Object
org.gridkit.jvmtool.stacktrace.ThreadDumpSampler
public class ThreadDumpSampler
- extends Object
Thread stack sampler.
- Author:
- Alexey Ragozin (alexey.ragozin@gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadDumpSampler
public ThreadDumpSampler()
adaptThreadMXBean
public static ThreadMXBean adaptThreadMXBean(ThreadMXBean bean)
setThreadFilter
public void setThreadFilter(String pattern)
setThreadFilter
public void setThreadFilter(ThreadNameFilter filter)
enableThreadStackTrace
public void enableThreadStackTrace(boolean enable)
enableThreadCpu
public void enableThreadCpu(boolean enable)
enableThreadUserCpu
public void enableThreadUserCpu(boolean enable)
enableThreadAllocation
public void enableThreadAllocation(boolean enable)
connect
public void connect(ThreadMXBean threadingMBean)
prime
public void prime()
- Find threads according to thread name filters and memorise their IDs.
Optional method to avoid dump all threads at every collection.
collect
public void collect(StackTraceWriter writer)
throws IOException
- Throws:
IOException
Copyright © 2019. All Rights Reserved.