util
Class RuntimeStatistics

java.lang.Object
  extended by util.Statistics
      extended by util.RuntimeStatistics

public class RuntimeStatistics
extends Statistics

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

RuntimeStatistics

public RuntimeStatistics()
Method Detail

putStats

public void putStats(long time,
                     long timeWithGc)
Adds the measured times to the accumulated statistics.

Parameters:
time - wall-clock time in milliseconds excluding garbage collection time
timeWithGc - wall-clock time in milliseconds including garbage collection time

dumpFull

public void dumpFull(PrintStream out)
Description copied from class: Statistics
Prints the full results for the statistics.

Specified by:
dumpFull in class Statistics
Parameters:
out - output stream

dumpSummary

public void dumpSummary(PrintStream out)
Description copied from class: Statistics
Prints a summary of the statistics. The output should be short and, in most cases, at most one line long.

Specified by:
dumpSummary in class Statistics
Parameters:
out - output stream

merge

public void merge(Object obj)
Description copied from class: Statistics
Merge two of the same type of statistics together. Used to aggregate statistics together.

Specified by:
merge in class Statistics
Parameters:
obj - another statistics object of the same type to be merged with