|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.utility.statistics.Stats
public class Stats
This class implements basic statistics functionality
Nested Class Summary | |
---|---|
(package private) static class |
Stats.Phase
|
Field Summary | |
---|---|
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 Summary | |
---|---|
Stats()
|
Method Summary | |
---|---|
private static void |
closeStatXml()
|
static void |
endGC()
End a GC phase. |
static boolean |
gatheringStats()
|
static int |
gcCount()
|
(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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean GATHER_MARK_CONS_STATS
static final int MAX_PHASES
static final int MAX_COUNTERS
private static int counters
private static Counter[] counter
static int phase
private static int gcCount
static boolean gatheringStats
static boolean exceededPhaseLimit
Constructor Detail |
---|
public Stats()
Method Detail |
---|
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()
public static boolean gatheringStats()
true
if currently gathering stats
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |