org.jikesrvm.adaptive.measurements.organizers
Class MethodSampleOrganizer
java.lang.Object
org.jikesrvm.scheduler.SystemThread
org.jikesrvm.adaptive.measurements.organizers.Organizer
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filterOptLevel
private int filterOptLevel
- Filter out all opt-compiled methods that were compiled
at this level or higher.
MethodSampleOrganizer
public MethodSampleOrganizer(int filterOptLevel)
- Parameters:
filterOptLevel
- filter out all opt-compiled methods that
were compiled at this level or higher
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