Package org.opencms.main
Class CmsSingleThreadDumperThread
- java.lang.Object
-
- java.lang.Thread
-
- org.opencms.main.CmsSingleThreadDumperThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class CmsSingleThreadDumperThread extends java.lang.Thread
Profiling thread used for the startup process.Periodically creates thread dumps for a single thread, saves them zo a ZIP file, and also generates a summary XML files presenting the stack frames with with their sample counts as a tree structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CmsSingleThreadDumperThread.SampleNode
Node for the summary tree generated from the thread dumps.
-
Constructor Summary
Constructors Constructor Description CmsSingleThreadDumperThread(java.lang.String filename, java.lang.String summaryFilename, long id)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
CmsSingleThreadDumperThread
public CmsSingleThreadDumperThread(java.lang.String filename, java.lang.String summaryFilename, long id)
Creates a new instance.- Parameters:
filename
- the name of the zip file to generatesummaryFilename
- the name of the summary file to generateid
- the id of the thread to monitor
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
- See Also:
Thread.run()
-
-