Class AbstractEngineStopwatch
java.lang.Object
com.ibm.wala.client.AbstractEngineStopwatch
- All Implemented Interfaces:
EngineStopwatch
An object to track performance of an analysis engine
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String[]protected abstract intgetTimer(byte category) Returns access to class encapsulating time events results, related to the given category.final Stringreport()voidstart(byte category) start timing for some categoryvoidstop(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:
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
Description copied from interface:EngineStopwatchReturns access to class encapsulating time events results, related to the given category.- Specified by:
getTimerin interfaceEngineStopwatch
-