|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.util.ProfilerImpl
public class ProfilerImpl
Simple class for profiling code. beginItem/endItem pairs start and stop the timing for an item.
| Constructor Summary | |
|---|---|
ProfilerImpl()
Create an empty object |
|
| Method Summary | |
|---|---|
void |
beginItem()
Start timing an item. |
void |
beginItem(java.lang.String desc)
Start timing an item. |
void |
endItem()
Stop timing an item and store the information. |
static void |
main(java.lang.String[] notUsed)
Simple unit test |
void |
reset()
Reset all the timing information |
java.lang.String |
toString()
Return a formatted String with the timing information |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProfilerImpl()
| Method Detail |
|---|
public void reset()
public void beginItem()
public void beginItem(java.lang.String desc)
desc - - Descriptive text for the itempublic void endItem()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] notUsed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||