Class AbstractEngineStopwatch
java.lang.Object
com.ibm.wala.client.AbstractEngineStopwatch
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String[]
protected abstract int
getTimer
(byte category) Returns access to class encapsulating time events results, related to the given category.final String
report()
void
start
(byte category) start timing for some categoryvoid
stop
(byte category) stop timing for some category
-
Field Details
-
stopwatch
-
-
Constructor Details
-
AbstractEngineStopwatch
protected AbstractEngineStopwatch()
-
-
Method Details
-
getNumberOfCategories
protected abstract int getNumberOfCategories()- Returns:
- the number of distinct categories timed by this object
-
getCategoryNames
- Returns:
- an array of Strings that represent names of the categories tracked
-
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
Description copied from interface:EngineStopwatch
Returns access to class encapsulating time events results, related to the given category.- Specified by:
getTimer
in interfaceEngineStopwatch
-