|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.jvnet.lafwidget.utils.TrackableThread
org.jvnet.substance.utils.MemoryAnalyzer
public class MemoryAnalyzer
Tracer for memory usage patterns of Substance look-and-feel. The
tracer is started when VM has -Dsubstancelaf.traceFile
flag. The
value of this flag specifies the location of trace log file. When activated,
the tracer runs a thread that collects information on memory usage and
appends it to the trace log file every X
seconds. The
X
(delay) is specified in the constructor. This class is for
internal use only.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
---|---|
static void |
commence(long delay,
java.lang.String filename)
Starts the memory tracing. |
static void |
enqueueUsage(java.lang.String usage)
Adds usage string. |
static java.util.ArrayList<java.lang.String> |
getUsages()
Returns all queued usages. |
static boolean |
isRunning()
Checks whether tracer is running. |
void |
requestStop()
Issues request to stop tracing. |
void |
run()
|
Methods inherited from class org.jvnet.lafwidget.utils.TrackableThread |
---|
requestStopAllThreads |
Methods inherited from class java.lang.Thread |
---|
activeCount, 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, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static void commence(long delay, java.lang.String filename)
delay
- Sleep delay between trace log iterations.filename
- Trace logfile name.public void requestStop()
requestStop
in class org.jvnet.lafwidget.utils.TrackableThread
public static boolean isRunning()
true
if tracer is running, false
otherwise.public static void enqueueUsage(java.lang.String usage)
usage
- Usage string. Will be output to the trace file at next
iteration of the tracer.public static java.util.ArrayList<java.lang.String> getUsages()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |