org.jikesrvm.adaptive.measurements.organizers
Class AccumulatingMethodSampleOrganizer

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

public final class AccumulatingMethodSampleOrganizer
extends Organizer

An organizer for method listener information that simply accumulates the samples into a private MethodCountData instance.

This organizer is used to simply gather aggregate sample data and report it.


Nested Class Summary
(package private)  class AccumulatingMethodSampleOrganizer.AsyncReporter
           
 
Field Summary
private  MethodCountData data
           
 
Fields inherited from class org.jikesrvm.adaptive.measurements.organizers.Organizer
listener
 
Fields inherited from class org.jikesrvm.scheduler.SystemThread
rvmThread
 
Constructor Summary
AccumulatingMethodSampleOrganizer()
           
 
Method Summary
 void initialize()
          Initialization: set up data structures and sampling objects.
 void report()
          Last opportunity to say something.
(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, 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

data

private MethodCountData data
Constructor Detail

AccumulatingMethodSampleOrganizer

public AccumulatingMethodSampleOrganizer()
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

report

public void report()
Description copied from class: Organizer
Last opportunity to say something.

Overrides:
report in class Organizer