|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpolyglot.frontend.Stats
public class Stats
Statistics collection and reporting object. Extensions can override this to collect more stats or to change reporting.
Nested Class Summary | |
---|---|
protected static class |
Stats.Times
|
Field Summary | |
---|---|
protected ExtensionInfo |
ext
Extension we're collecting stats for. |
protected java.util.List |
keys
List of Objects used as keys to passTimes. |
protected java.util.Map |
passTimes
Map from Objects to pair of inclusive and exclusive times. |
Constructor Summary | |
---|---|
Stats(ExtensionInfo ext)
|
Method Summary | |
---|---|
void |
accumPassTimes(java.lang.Object key,
long in,
long ex)
Accumulate inclusive and exclusive times for a pass. |
long |
passTime(java.lang.Object key,
boolean inclusive)
Return the accumulated times for a pass. |
void |
report()
Report the stats. |
void |
resetPassTimes(java.lang.Object key)
Reset the accumulated times for a pass. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ExtensionInfo ext
protected java.util.Map passTimes
protected java.util.List keys
Constructor Detail |
---|
public Stats(ExtensionInfo ext)
Method Detail |
---|
public void resetPassTimes(java.lang.Object key)
public long passTime(java.lang.Object key, boolean inclusive)
public void accumPassTimes(java.lang.Object key, long in, long ex)
public void report()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |