|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.util.Profiler
public class Profiler
A easy-to-use class that wraps one global ProfilerImpl object. Use it to begin and end profiling in one 'profiling thread'. I.e. use this object to get timing for sub-operations. Use separate ProfilerImpl objects to get timings for overlapping profile needs.
WARNING: Call reset at the end to avoid memory leaks.
| Method Summary | |
|---|---|
static void |
beginItem()
Start timing an item. |
static void |
beginItem(java.lang.String desc)
Start timing an item. |
static void |
endItem()
Stop timing of the latest item |
static void |
main(java.lang.String[] notUsed)
|
static java.lang.String |
report()
return a String report of all the timings |
static void |
reset()
Reset the global ProfilerImpl instance. |
static void |
subItem(java.lang.String desc)
Convenience method to avoid endItem() beginItem() bracketing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void reset()
public static void beginItem()
public static void beginItem(java.lang.String desc)
desc - - Descriptive text for the itempublic static void endItem()
public static java.lang.String report()
public static void subItem(java.lang.String desc)
desc - - Descriptive text for the itempublic static void main(java.lang.String[] notUsed)
notUsed -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||