org.jikesrvm.adaptive.database.methodsamples
Class MethodCountSet

java.lang.Object
  extended by org.jikesrvm.adaptive.database.methodsamples.MethodCountSet

public final class MethodCountSet
extends Object

Wrapper around a pair of parallel arrays:

  1. an array of compiled method id's
  2. an array of counts: how many times each compiled method id is counted


Field Summary
(package private)  CompiledMethod[] cms
          array of compiled methods
(package private)  double[] counters
          array of counts
 
Constructor Summary
MethodCountSet(CompiledMethod[] _cms, double[] _counters)
          Constructor
 
Method Summary
 String toString()
          String representation of fields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cms

CompiledMethod[] cms
array of compiled methods


counters

double[] counters
array of counts

Constructor Detail

MethodCountSet

MethodCountSet(CompiledMethod[] _cms,
               double[] _counters)
Constructor

Parameters:
_cms - array of compiled method ids
_counters - array of counters
Method Detail

toString

public String toString()
String representation of fields

Overrides:
toString in class Object
Returns:
string representation of compiled method id's and their counts