|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.rubettes.util.PerformanceCheck
public class PerformanceCheck
A utility class for benchmark tests. Example:
PerformanceCheck.reset();
for (int i = 0; i < 10; i++) {
PerformanceCheck.startTask("task1");
... do something ...
PerformanceCheck.startTask("task2");
... do something else ...
}
PerformanceCheck.print();
Constructor Summary | |
---|---|
PerformanceCheck()
|
Method Summary | |
---|---|
static void |
print()
Prints the timer states for all known tasks. |
static void |
printPercentages()
Prints the percentage of each timer states for all known tasks. |
static void |
reset()
Resets all timers. |
static void |
startTask(java.lang.String currentTaskName)
Starts the timer for the specified task and stops the timer for the previous task. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PerformanceCheck()
Method Detail |
---|
public static void reset()
public static void startTask(java.lang.String currentTaskName)
currentTaskName
- - the name of the started taskpublic static void print()
public static void printPercentages()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |