Algernon Software

org.algernon.aam
Class Profiler

java.lang.Object
  extended byorg.algernon.aam.Profiler

public class Profiler
extends Object

Profiler provides methods for tracing execution in the AAM.

See Also:
Processor

Field Summary
protected  boolean m_enabled
           
protected  Processor m_processor
           
 
Constructor Summary
Profiler(Processor processor)
          Creates a new Profiler object.
 
Method Summary
 boolean isEnabled()
          Returns the value of Enabled.
 void printStatistics()
          Prints or logs all current statistics.
 void profile(String name)
           
 void reset()
          Erases all statistics and turns off the profiler.
 void setEnabled(boolean newEnabled)
          Sets the value of Enabled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_enabled

protected boolean m_enabled

m_processor

protected Processor m_processor
Constructor Detail

Profiler

public Profiler(Processor processor)
Creates a new Profiler object.

Method Detail

profile

public void profile(String name)

reset

public void reset()
Erases all statistics and turns off the profiler.


printStatistics

public void printStatistics()
Prints or logs all current statistics.


isEnabled

public boolean isEnabled()
Returns the value of Enabled.


setEnabled

public void setEnabled(boolean newEnabled)
Sets the value of Enabled.


Algernon Software