public class ProfilerThread extends DirectoryThread
DirectoryThread.FactoryThread.State, Thread.UncaughtExceptionHandlerDIRECTORY_THREAD_GROUPMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ProfilerThread(long sampleInterval)
Creates a new profiler thread that will obtain stack traces at the
specified interval.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Runs in a loop, periodically capturing a list of the stack traces for all
active threads.
|
void |
stopProfiling()
Causes the profiler thread to stop capturing stack traces.
|
void |
writeCaptureData(String filename)
Writes the information captured by this profiler thread to the specified
file.
|
getAssociatedTask, getCreationStackTrace, getDebugProperties, getParentThread, initiateShutdown, isShutdownInitiated, setAssociatedTask, startWork, stopWorkactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ProfilerThread(long sampleInterval)
sampleInterval - The length of time in milliseconds between polls
for stack trace information.public void run()
public void stopProfiling()
public void writeCaptureData(String filename) throws IOException
filename - The path and name of the file to write.IOException - If a problem occurs while trying to write the
capture data.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.