public class InstrumentBranchesPhase extends InstrumentPhase
IfNodes in the graph, by adding execution counters to the true and the false
branch of each IfNode. If this phase is enabled, the runtime outputs a summary of all the
compiled IfNodes and the execution count of their branches, when the program exits.
The phase is enabled with the following flag:
-Dgraal.TruffleInstrumentBranchesThe flag:
-Dgraal.TruffleInstrumentBranchesPerInlineSitedecides whether to treat different inlining sites separately when tracking the execution counts of an
IfNode.| Modifier and Type | Class and Description |
|---|---|
static class |
InstrumentBranchesPhase.BranchState |
class |
InstrumentBranchesPhase.IfPoint |
InstrumentPhase.Instrumentation, InstrumentPhase.InstrumentationConfiguration, InstrumentPhase.PointBasePhase.ApplyScope, BasePhase.BasePhaseStatistics, BasePhase.PhaseOptions, BasePhase.SharedGlobalPhaseStatesnippetReflection| Constructor and Description |
|---|
InstrumentBranchesPhase(SnippetReflectionProvider snippetReflection,
InstrumentPhase.Instrumentation instrumentation,
boolean instrumentPerInlineSite) |
| Modifier and Type | Method and Description |
|---|---|
protected InstrumentPhase.Point |
createPoint(int id,
int startIndex,
Node n) |
protected int |
instrumentationPointSlotCount() |
protected void |
instrumentGraph(StructuredGraph graph,
TruffleTierContext context,
JavaConstant tableConstant) |
protected boolean |
instrumentPerInlineSite() |
codeSizeIncrease, getInstrumentation, getOrCreatePoint, insertCounter, instrumentationFilter, methodFilter, runapply, apply, applyScope, contractorName, equals, getName, hashCode, shouldDumpAfterAtBasicLevel, shouldDumpBeforeAtBasicLevelclone, getClass, notify, notifyAll, toString, wait, wait, waitcheckContractpublic InstrumentBranchesPhase(SnippetReflectionProvider snippetReflection, InstrumentPhase.Instrumentation instrumentation, boolean instrumentPerInlineSite)
protected void instrumentGraph(StructuredGraph graph, TruffleTierContext context, JavaConstant tableConstant)
instrumentGraph in class InstrumentPhaseprotected int instrumentationPointSlotCount()
instrumentationPointSlotCount in class InstrumentPhaseprotected boolean instrumentPerInlineSite()
instrumentPerInlineSite in class InstrumentPhaseprotected InstrumentPhase.Point createPoint(int id, int startIndex, Node n)
createPoint in class InstrumentPhase