|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread seda.sandStorm.internal.sandStormProfiler
class sandStormProfiler
sandStormProfiler is an implementation of the ProfilerIF interface for Sandstorm. It is implemented using a thread that periodically samples the set of ProfilableIF's registered with it, and outputs the profile to a file.
ProfilerIF
,
ProfilableIF
Nested Class Summary | |
---|---|
(package private) class |
sandStormProfiler.profile
|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private int |
delay
|
private StageGraph |
graphProfiler
|
private java.util.Vector |
profilables
|
private java.io.PrintWriter |
pw
|
private boolean |
started
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Fields inherited from interface seda.sandStorm.internal.sandStormConst |
---|
MAJOR_VERSION, MINOR_VERSION, VERSION_STRING, WELCOME_STRING |
Constructor Summary | |
---|---|
sandStormProfiler(ManagerIF mgr)
|
Method Summary | |
---|---|
void |
add(java.lang.String name,
ProfilableIF pr)
Add a class to this profiler. |
boolean |
enabled()
Returns true if the profiler is enabled. |
StageGraph |
getGraphProfiler()
Return a handle to the graph profiler. |
void |
run()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int delay
private java.io.PrintWriter pw
private java.util.Vector profilables
private boolean started
private StageGraph graphProfiler
Constructor Detail |
---|
sandStormProfiler(ManagerIF mgr) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public boolean enabled()
enabled
in interface ProfilerIF
public void add(java.lang.String name, ProfilableIF pr)
add
in interface ProfilerIF
name
- The name of the object as it should appear in the profile.pr
- The object to profile.public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public StageGraph getGraphProfiler()
ProfilerIF
getGraphProfiler
in interface ProfilerIF
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |