|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjutil.Profiler
public class Profiler
The class contains primitive utilities for profiling method calls. They are primitive because they count all time elapsed, not just the time consumed by the thread running the method call.
Field Summary | |
---|---|
private static long |
startTime
The timer |
Constructor Summary | |
---|---|
Profiler()
|
Method Summary | |
---|---|
static void |
start()
same as start but with no message. |
static void |
start(java.lang.String msg)
Call this method just before the method call you want to time. |
static void |
stop()
Same as start with no message. |
static void |
stop(java.lang.String msg)
Call this method immediately after the method call. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static long startTime
Constructor Detail |
---|
public Profiler()
Method Detail |
---|
public static void start(java.lang.String msg)
msg
- A message to display when timer startspublic static void start()
public static void stop(java.lang.String msg)
msg
- An additional message to displaypublic static void stop()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |