|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Timing>
fabric.worker.debug.Timing
public enum Timing
A utility class for recording the timing of various categories.
Enum Constant Summary | |
---|---|
APP
|
|
BEGIN
|
|
COMMIT
|
|
FETCH
|
|
STORE
|
|
SUBTX
|
|
TXLOG
|
Field Summary | |
---|---|
boolean |
enabled
Whether or not to record time for this category |
Method Summary | |
---|---|
void |
begin()
Begin recording time into the given category (exclusively) |
void |
end()
Stop recording time into the given category, and begin recording to the former category. |
static void |
main(java.lang.String[] args)
|
static void |
printStats()
Print a summary of the time spent in each category to standard output. |
static void |
printStats(java.io.PrintStream out)
Print a summary of the time spent in each category to the provided OutputStream |
static void |
reset()
Reset all of the statistics, and begin timing in cat |
static Timing |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Timing[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Timing APP
public static final Timing BEGIN
public static final Timing COMMIT
public static final Timing TXLOG
public static final Timing SUBTX
public static final Timing FETCH
public static final Timing STORE
Field Detail |
---|
public boolean enabled
Method Detail |
---|
public static Timing[] values()
for (Timing c : Timing.values()) System.out.println(c);
public static Timing valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic void begin()
public void end()
public static void printStats()
public static void printStats(java.io.PrintStream out)
public static void reset()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |