Enum Constant and Description |
---|
APP |
BEGIN |
COMMIT |
FETCH |
STORE |
SUBTX |
TXLOG |
Modifier and Type | Field and Description |
---|---|
boolean |
enabled
Whether or not to record time for this category
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 namejava.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)