|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.Statistics
util.RuntimeStatistics
public class RuntimeStatistics
Runtime statistics (wall-clock time) with and without garbage collection time. This class is intended to repeatedly measure the same piece of code and return a summary of the measured runtimes.
| Constructor Summary | |
|---|---|
RuntimeStatistics()
|
|
| Method Summary | |
|---|---|
void |
dumpFull(PrintStream out)
Prints the full results for the statistics. |
void |
dumpSummary(PrintStream out)
Prints a summary of the statistics. |
void |
merge(Object obj)
Merge two of the same type of statistics together. |
void |
putStats(long time,
long timeWithGc)
Adds the measured times to the accumulated statistics. |
| Methods inherited from class util.Statistics |
|---|
printFullHeader, printSummaryHeader, summarizeFloats, summarizeFloats, summarizeFloats, summarizeInts, summarizeInts, summarizeInts, summarizeLongs, summarizeLongs, summarizeLongs, summarizeLongs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RuntimeStatistics()
| Method Detail |
|---|
public void putStats(long time,
long timeWithGc)
time - wall-clock time in milliseconds excluding garbage collection timetimeWithGc - wall-clock time in milliseconds including garbage collection timepublic void dumpFull(PrintStream out)
Statistics
dumpFull in class Statisticsout - output streampublic void dumpSummary(PrintStream out)
Statistics
dumpSummary in class Statisticsout - output streampublic void merge(Object obj)
Statistics
merge in class Statisticsobj - another statistics object of the same type to be merged with
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||