Package com.ibm.wala.client
Class AbstractEngineStopwatch
- java.lang.Object
-
- com.ibm.wala.client.AbstractEngineStopwatch
-
- All Implemented Interfaces:
EngineStopwatch
public abstract class AbstractEngineStopwatch extends Object implements EngineStopwatch
An object to track performance of an analysis engine
-
-
Field Summary
Fields Modifier and Type Field Description protected StopwatchGC[]
stopwatch
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEngineStopwatch()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String[]
getCategoryNames()
protected abstract int
getNumberOfCategories()
StopwatchGC
getTimer(byte category)
Returns access to class encapsulating time events results, related to the given category.String
report()
void
start(byte category)
start timing for some categoryvoid
stop(byte category)
stop timing for some category
-
-
-
Field Detail
-
stopwatch
protected final StopwatchGC[] stopwatch
-
-
Method Detail
-
getNumberOfCategories
protected abstract int getNumberOfCategories()
- Returns:
- the number of distinct categories timed by this object
-
getCategoryNames
protected abstract String[] getCategoryNames()
- Returns:
- an array of Strings that represent names of the categories tracked
-
report
public final String report()
- Specified by:
report
in interfaceEngineStopwatch
- 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 interfaceEngineStopwatch
-
stop
public void stop(byte category)
Description copied from interface:EngineStopwatch
stop timing for some category- Specified by:
stop
in interfaceEngineStopwatch
-
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 interfaceEngineStopwatch
-
-