com.caucho.tools.profiler
Class ProfilerManager

java.lang.Object
  extended by com.caucho.tools.profiler.ProfilerManager

public class ProfilerManager
extends java.lang.Object

The main entry point for profiling. This class is used to obtain instances of ProfilerPoint, which are then used during execution of code to demarcate the code to be profiled.

A ProfilerManager for the current ClassLoader is obtained with getLocal().


Method Summary
 ProfilerPoint addProfilerPoint(java.lang.String name)
           
 void disable()
           
 void enable()
           
 ProfilerPoint getCategorizingProfilerPoint(java.lang.String name)
           
static ProfilerManager getLocal()
           
 ProfilerPoint getProfilerPoint(java.lang.String name)
           
 ProfilerPoint getRoot()
           
 boolean isEnabled()
           
 void reset()
          Clear all profiling information.
 void setEnabled(boolean isEnabled)
          Set to true to enable profiling, default false.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getLocal

public static ProfilerManager getLocal()

getRoot

public ProfilerPoint getRoot()

getProfilerPoint

public ProfilerPoint getProfilerPoint(java.lang.String name)

setEnabled

public void setEnabled(boolean isEnabled)
Set to true to enable profiling, default false.


isEnabled

public boolean isEnabled()

enable

public void enable()

disable

public void disable()

addProfilerPoint

public ProfilerPoint addProfilerPoint(java.lang.String name)

getCategorizingProfilerPoint

public ProfilerPoint getCategorizingProfilerPoint(java.lang.String name)

reset

public void reset()
Clear all profiling information.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object