mdw.sandStorm.api
Interface ProfilerIF
- All Known Implementing Classes:
- sandStormProfiler
- public interface ProfilerIF
A ProfilerIF is responsible for profiling the behavior of the system
over time. If the system is being run in profiling mode, applications
can get a handle to the ProfilerIF by invoking ManagerIF.getProfiler().
- Author:
- Matt Welsh
- See Also:
ManagerIF
Method Summary |
void |
add(java.lang.String name,
ProfilableIF pr)
Add a class to the profile. |
boolean |
enabled()
Returns true if the system is being run in profiling mode;
false otherwise. |
StageGraph |
getGraphProfiler()
Return a handle to the graph profiler. |
enabled
public boolean enabled()
- Returns true if the system is being run in profiling mode;
false otherwise.
add
public void add(java.lang.String name,
ProfilableIF pr)
- Add a class to the profile. This will cause the profiler to track
the object's size over time.
- Parameters:
name
- The name of the object as it should appear in the profile.pr
- The object to profile.
getGraphProfiler
public StageGraph getGraphProfiler()
- Return a handle to the graph profiler.