More information: http://www.cs.berkeley.edu/~mdw/proj/seda/

seda.sandStorm.internal
Class sandStormProfiler

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--seda.sandStorm.internal.sandStormProfiler
All Implemented Interfaces:
ProfilerIF, java.lang.Runnable, sandStormConst

class sandStormProfiler
extends java.lang.Thread
implements sandStormConst, ProfilerIF

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.

Author:
Matt Welsh
See Also:
ProfilerIF, ProfilableIF

Inner Class Summary
(package private)  class sandStormProfiler.profile
           
 
Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
 
Fields inherited from interface seda.sandStorm.internal.sandStormConst
MAJOR_VERSION, MINOR_VERSION, VERSION_STRING, WELCOME_STRING
 
Constructor Summary
(package private) 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, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Constructor Detail

sandStormProfiler

sandStormProfiler(ManagerIF mgr)
            throws java.io.IOException
Method Detail

enabled

public boolean enabled()
Returns true if the profiler is enabled.
Specified by:
enabled in interface ProfilerIF

add

public void add(java.lang.String name,
                ProfilableIF pr)
Add a class to this profiler.
Specified by:
add in interface ProfilerIF
Following copied from interface: seda.sandStorm.api.ProfilerIF
Parameters:
name - The name of the object as it should appear in the profile.
pr - The object to profile.

run

public void run()
Overrides:
run in class java.lang.Thread

getGraphProfiler

public StageGraph getGraphProfiler()
Description copied from interface: ProfilerIF
Return a handle to the graph profiler.
Specified by:
getGraphProfiler in interface ProfilerIF

More information: http://www.cs.berkeley.edu/~mdw/proj/seda/