bb.util
Class Benchmark.Measurement

java.lang.Object
  extended by bb.util.Benchmark.Measurement
Enclosing class:
Benchmark

protected static class Benchmark.Measurement
extends Object

Records information about an execution time measurement.


Field Summary
protected  double executionTime
          Execution time (in seconds).
protected  Benchmark.JvmState jvmState
          Records Benchmark.JvmState just after the measurement ended.
 
Constructor Summary
protected Benchmark.Measurement(double executionTime, Benchmark.JvmState jvmState)
          Constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executionTime

protected double executionTime
Execution time (in seconds).

Contract: is never NaN or infinite and is >= 0.


jvmState

protected Benchmark.JvmState jvmState
Records Benchmark.JvmState just after the measurement ended.

Contract: is never null.

Constructor Detail

Benchmark.Measurement

protected Benchmark.Measurement(double executionTime,
                                Benchmark.JvmState jvmState)
                         throws IllegalArgumentException
Constructor.

Parameters:
executionTime - in seconds
jvmState - Benchmark.JvmState after measurement
Throws:
IllegalArgumentException - if executionTime is NaN, infinite, or < 0; jvmState == null