Package com.sun.enterprise.util
Class ProfilerImpl
- java.lang.Object
-
- com.sun.enterprise.util.ProfilerImpl
-
public class ProfilerImpl extends Object
Simple class for profiling code. beginItem/endItem pairs start and stop the timing for an item.- Author:
- bnevins
-
-
Constructor Summary
Constructors Constructor Description ProfilerImpl()
Create an empty object
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginItem()
Start timing an item.void
beginItem(String desc)
Start timing an item.void
endItem()
Stop timing an item and store the information.static void
main(String[] notUsed)
Simple unit testvoid
reset()
Reset all the timing informationString
toString()
Return a formatted String with the timing information
-
-
-
Method Detail
-
reset
public void reset()
Reset all the timing information
-
beginItem
public void beginItem()
Start timing an item.
-
beginItem
public void beginItem(String desc)
Start timing an item.- Parameters:
desc
- - Descriptive text for the item
-
endItem
public void endItem()
Stop timing an item and store the information.
-
toString
public String toString()
Return a formatted String with the timing information
-
main
public static void main(String[] notUsed)
Simple unit test
-
-