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 protectedAbstractEngineStopwatch()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String[]getCategoryNames()protected abstract intgetNumberOfCategories()StopwatchGCgetTimer(byte category)Returns access to class encapsulating time events results, related to the given category.Stringreport()voidstart(byte category)start timing for some categoryvoidstop(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:
reportin interfaceEngineStopwatch- Returns:
- a String representation of the information in this object
-
start
public void start(byte category)
Description copied from interface:EngineStopwatchstart timing for some category- Specified by:
startin interfaceEngineStopwatch
-
stop
public void stop(byte category)
Description copied from interface:EngineStopwatchstop timing for some category- Specified by:
stopin interfaceEngineStopwatch
-
getTimer
public StopwatchGC getTimer(byte category)
Description copied from interface:EngineStopwatchReturns access to class encapsulating time events results, related to the given category.- Specified by:
getTimerin interfaceEngineStopwatch
-
-