bb.util
Class Benchmark.JvmState

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

protected static class Benchmark.JvmState
extends Object

Records some characteristics of the JVM state.


Field Summary
protected  long compilationTimeTotal
          Accumlated elapsed time (in milliseconds) spent in compilation.
protected  long countClassesLoaded
          Count of the total number of classes that have been loaded by this JVM.
protected  long countClassesUnloaded
          Count of the total number of classes that have been unloaded by this JVM.
 
Constructor Summary
protected Benchmark.JvmState()
          Constructor.
 
Method Summary
protected  String difference(Benchmark.JvmState other)
          Returns a String report of the differences, if any, between this instance and other.
 boolean equals(Object obj)
          Determines equality based on whether or not obj is a JvmState instance whose every field equals that of this instance.
 int hashCode()
          Returns a value based on all of the fields.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

countClassesLoaded

protected long countClassesLoaded
Count of the total number of classes that have been loaded by this JVM.


countClassesUnloaded

protected long countClassesUnloaded
Count of the total number of classes that have been unloaded by this JVM.


compilationTimeTotal

protected long compilationTimeTotal
Accumlated elapsed time (in milliseconds) spent in compilation.

Constructor Detail

Benchmark.JvmState

protected Benchmark.JvmState()
Constructor.

Method Detail

equals

public final boolean equals(Object obj)
Determines equality based on whether or not obj is a JvmState instance whose every field equals that of this instance.

Overrides:
equals in class Object

hashCode

public final int hashCode()
Returns a value based on all of the fields.

Overrides:
hashCode in class Object

difference

protected String difference(Benchmark.JvmState other)
Returns a String report of the differences, if any, between this instance and other.

Contract: the result is never null, but will be zero-length if there is no difference.