Modifier and Type | Class and Description |
---|---|
(package private) static class |
Stats.Phase |
Modifier and Type | Field and Description |
---|---|
private static Counter[] |
counter |
private static int |
counters |
(package private) static boolean |
exceededPhaseLimit |
static boolean |
GATHER_MARK_CONS_STATS |
(package private) static boolean |
gatheringStats |
private static int |
gcCount |
(package private) static int |
MAX_COUNTERS
Maximum number of counters that can be in operation
|
(package private) static int |
MAX_PHASES
Maximum number of gc/mutator phases that can be counted
|
(package private) static int |
phase |
Constructor and Description |
---|
Stats() |
Modifier and Type | Method and Description |
---|---|
private static void |
closeStatXml() |
static void |
endGC()
End a GC phase.
|
static boolean |
gatheringStats() |
static int |
gcCount()
Returns the total count of collections.
|
(package private) static void |
newCounter(Counter ctr)
Add a new counter to the set of managed counters.
|
private static void |
openStatXml(String name) |
private static void |
printColumnNames()
Print out statistics column names
|
static void |
printPhases()
Print out statistics for each mutator/gc phase
|
private static void |
printPhaseStatXml(Counter c,
int p,
Stats.Phase phase)
Print a single phase counter in an xml tag
|
static void |
printPhasesXml()
Print out statistics for each mutator/gc phase in Xml format
|
static void |
printStats() |
static void |
printStatsPlain()
Print out statistics
|
static void |
printStatsXml()
Print command-line options and statistics in XML format
|
static void |
printTotals()
Print out statistics totals
|
static void |
printTotalsXml()
Print out statistics totals in Xml format
|
private static void |
printTotalXml(Counter c,
Stats.Phase phase)
Print a single total in an xml tag
|
static void |
startAll()
Start all implicitly started counters (i.e. those for whom
start == true ). |
static void |
startGC()
Start a new GC phase.
|
static void |
stopAll()
Stop all counters
|
private static void |
stopAllCounters()
Stop all counters
|
public static final boolean GATHER_MARK_CONS_STATS
static final int MAX_PHASES
static final int MAX_COUNTERS
private static int counters
static int phase
private static int gcCount
static boolean gatheringStats
static boolean exceededPhaseLimit
public Stats()
static void newCounter(Counter ctr)
ctr
- The counter to be added.public static void startGC()
public static void endGC()
public static void startAll()
start == true
).public static void stopAll()
private static void stopAllCounters()
public static void printStats()
public static void printStatsPlain()
public static void printTotals()
public static void printPhases()
private static void printColumnNames()
public static void printStatsXml()
private static void openStatXml(String name)
private static void closeStatXml()
public static void printTotalsXml()
private static void printTotalXml(Counter c, Stats.Phase phase)
c
- The counterphase
- The phaseprivate static void printPhaseStatXml(Counter c, int p, Stats.Phase phase)
c
- The counterp
- The phase numberphase
- The phase (null, "mu" or "gc")public static void printPhasesXml()
public static int gcCount()
Note: This count is available even when gathering of statistics is disabled.
public static boolean gatheringStats()
true
if currently gathering stats