public final class AINewHotEdgeEvent extends HotMethodEvent implements ControllerInputEvent
Modifier and Type | Field and Description |
---|---|
private double |
boostFactor
Estimate of the expected benefit if the method is
recompiled AT THE SAME OPT LEVEL with the newly
enabled profile-directed inlining.
|
Constructor and Description |
---|
AINewHotEdgeEvent(CompiledMethod _cm,
double _numSamples,
double _boostFactor) |
AINewHotEdgeEvent(CompiledMethod _cm,
int _numSamples,
double _boostFactor) |
Modifier and Type | Method and Description |
---|---|
double |
getBoostFactor() |
void |
process()
Called when the controller is ready to process this event.
|
String |
toString() |
getCMID, getCompiledMethod, getMethod, getNumSamples, getOptCompiledLevel, getPrevCompilerConstant, isOptCompiled
private final double boostFactor
TODO: Think about reasonable ways to encode the expected boost factor for recompiling at higher opt levels. In the short run, this is academic, since we only plan to create an instance of this event for methods already compiled at max opt level, but it may be required later.
NB: Boost factor is a value >= 1.0! (1.0 means no boost, 1.1 means a 10% improvement, etc).
AINewHotEdgeEvent(CompiledMethod _cm, double _numSamples, double _boostFactor)
_cm
- the compiled method_numSamples
- the number of samples attributed to the method_boostFactor
- improvement expected by applying FDOAINewHotEdgeEvent(CompiledMethod _cm, int _numSamples, double _boostFactor)
_cm
- the compiled method_numSamples
- the number of samples attributed to the method_boostFactor
- improvement expected by applying FDOpublic double getBoostFactor()
public String toString()
toString
in class HotMethodEvent
public void process()
process
in interface ControllerInputEvent