org.jikesrvm.adaptive.measurements.organizers
Class MethodSampleOrganizer

java.lang.Object
  extended by org.jikesrvm.scheduler.SystemThread
      extended by org.jikesrvm.adaptive.measurements.organizers.Organizer
          extended by org.jikesrvm.adaptive.measurements.organizers.MethodSampleOrganizer

public final class MethodSampleOrganizer
extends Organizer

An organizer for method listener information.

This organizer is designed to work well with non-decayed cumulative method samples. The basic idea is that each time the sampling threshold is reached we update the accumulated method sample data with the new data and then notify the controller of all methods that were sampled in the current window.


Field Summary
private  int filterOptLevel
          Filter out all opt-compiled methods that were compiled at this level or higher.
 
Fields inherited from class org.jikesrvm.adaptive.measurements.organizers.Organizer
listener
 
Fields inherited from class org.jikesrvm.scheduler.SystemThread
rvmThread
 
Constructor Summary
MethodSampleOrganizer(int filterOptLevel)
           
 
Method Summary
 void initialize()
          Initialization: set up data structures and sampling objects.
(package private)  void thresholdReached()
          Method that is called when the sampling threshold is reached
 
Methods inherited from class org.jikesrvm.adaptive.measurements.organizers.Organizer
activate, report, run
 
Methods inherited from class org.jikesrvm.scheduler.SystemThread
getRVMThread, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterOptLevel

private int filterOptLevel
Filter out all opt-compiled methods that were compiled at this level or higher.

Constructor Detail

MethodSampleOrganizer

public MethodSampleOrganizer(int filterOptLevel)
Parameters:
filterOptLevel - filter out all opt-compiled methods that were compiled at this level or higher
Method Detail

initialize

public void initialize()
Initialization: set up data structures and sampling objects.

Uses either timer based sampling or counter based sampling, depending on Controller.options.

Specified by:
initialize in class Organizer

thresholdReached

void thresholdReached()
Description copied from class: Organizer
Method that is called when the sampling threshold is reached

Specified by:
thresholdReached in class Organizer