com.ibm.wala.client
Class AbstractEngineStopwatch

java.lang.Object
  extended by com.ibm.wala.client.AbstractEngineStopwatch
All Implemented Interfaces:
EngineStopwatch

public abstract class AbstractEngineStopwatch
extends java.lang.Object
implements EngineStopwatch

An object to track performance of an analysis engine


Field Summary
protected  StopwatchGC[] stopwatch
           
 
Constructor Summary
protected AbstractEngineStopwatch()
           
 
Method Summary
protected abstract  java.lang.String[] getCategoryNames()
           
protected abstract  int getNumberOfCategories()
           
 StopwatchGC getTimer(byte category)
          Returns access to class encapsulating time events results, related to the given category.
 java.lang.String report()
           
 void start(byte category)
          start timing for some category
 void stop(byte category)
          stop timing for some category
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stopwatch

protected final StopwatchGC[] stopwatch
Constructor Detail

AbstractEngineStopwatch

protected AbstractEngineStopwatch()
Method Detail

getNumberOfCategories

protected abstract int getNumberOfCategories()
Returns:
the number of distinct categories timed by this object

getCategoryNames

protected abstract java.lang.String[] getCategoryNames()
Returns:
an array of Strings that represent names of the categories tracked

report

public final java.lang.String report()
Specified by:
report in interface EngineStopwatch
Returns:
a String representation of the information in this object

start

public void start(byte category)
Description copied from interface: EngineStopwatch
start timing for some category

Specified by:
start in interface EngineStopwatch

stop

public void stop(byte category)
Description copied from interface: EngineStopwatch
stop timing for some category

Specified by:
stop in interface EngineStopwatch

getTimer

public StopwatchGC getTimer(byte category)
Description copied from interface: EngineStopwatch
Returns access to class encapsulating time events results, related to the given category.

Specified by:
getTimer in interface EngineStopwatch