public class InstrumentTruffleBoundariesPhase extends InstrumentPhase
TruffleBoundary-annotated methods in the graph, by adding execution
counters to respective callsites. If this phase is enabled, the runtime outputs a summary of all
such compiled callsites and their execution counts, when the program exits.
The phase is enabled with the following flag:
-Dgraal.TruffleInstrumentBoundariesThe phase can be configured to only instrument callsites in specific methods, by providing the following method filter flag:
-Dgraal.TruffleInstrumentBoundariesFilterThe flag:
-Dgraal.TruffleInstrumentBoundariesPerInlineSitedecides whether to treat different inlining sites separately when tracking the execution counts.
| Modifier and Type | Class and Description |
|---|---|
class |
InstrumentTruffleBoundariesPhase.BoundaryPoint |
InstrumentPhase.Instrumentation, InstrumentPhase.InstrumentationConfiguration, InstrumentPhase.PointBasePhase.ApplyScope, BasePhase.BasePhaseStatistics, BasePhase.PhaseOptions, BasePhase.SharedGlobalPhaseStatesnippetReflection| Constructor and Description |
|---|
InstrumentTruffleBoundariesPhase(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 InstrumentTruffleBoundariesPhase(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