Package com.sun.enterprise.util
Class ProfilerImpl
java.lang.Object
com.sun.enterprise.util.ProfilerImpl
Simple class for profiling code. beginItem/endItem pairs start and stop the timing for an item.
- Author:
- bnevins
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ProfilerImpl
public ProfilerImpl()Create an empty object
-
-
Method Details
-
reset
public void reset()Reset all the timing information -
beginItem
public void beginItem()Start timing an item. -
beginItem
Start timing an item.- Parameters:
desc- - Descriptive text for the item
-
endItem
public void endItem()Stop timing an item and store the information. -
toString
Return a formatted String with the timing information -
main
Simple unit test
-