|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.razvan.jzx.PerformanceCounter
public class PerformanceCounter
Track various time periods in the emulator and report them.
This class is used to determine possible performance bottlenecks.
Constructor Summary | |
---|---|
PerformanceCounter()
|
Method Summary | |
---|---|
static void |
end(java.lang.String name)
End tracking an event of specified time and record the amount of time it took to complete. |
static void |
report()
Report all the performance events gathered thus far. |
static void |
setEnable(boolean flag)
Enable or disable the counter functionality. |
static void |
setWarmup(int value)
Set the warmup count. |
static void |
start(java.lang.String name)
Start tracking a new event of specified type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PerformanceCounter()
Method Detail |
---|
public static void setEnable(boolean flag)
public static void setWarmup(int value)
public static void start(java.lang.String name)
You may not start the same event type twice in a row;
you must end(java.lang.String)
it first!
name
- The type of performance event to startpublic static void end(java.lang.String name)
You may not end the same event type twice in a row;
you must start(java.lang.String)
it first!
name
- The type of performance event to endpublic static void report()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |