public abstract class ProbeNode extends Node implements TruffleEventReceiver, InstrumentationNode
Probes to ProbeNode.WrapperNodes.| Modifier and Type | Class and Description |
|---|---|
static interface |
ProbeNode.Instrumentable
Any Truffle node implementing this interface can be "instrumented" by installing a
Probe that intercepts execution events at the node and routes them to any
Instruments that have been attached to the Probe. |
static interface |
ProbeNode.WrapperNode
A node that can be inserted into a Truffle AST, and which enables instrumentation at
a particular Guest Language (GL) node.
|
Node.Child, Node.Children| Constructor and Description |
|---|
ProbeNode() |
| Modifier and Type | Method and Description |
|---|---|
abstract Probe |
getProbe() |
static Probe |
insertProbe(ProbeNode.WrapperNode wrapper)
Create a new
Probe associated with, and attached to, a Guest Language specific
instance of ProbeNode.WrapperNode. |
static void |
insertProbeLite(ProbeNode.WrapperNode wrapper,
TruffleEventReceiver eventReceiver)
Creates a new
ProbeLiteNode associated with, and attached to, a Guest Language
specific instance of ProbeNode.WrapperNode. |
accept, adoptChildren, assignSourceSection, atomic, atomic, clearSourceSection, clone, copy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLanguage, getParent, getRootNode, getSourceSection, insert, insert, isReplaceable, onAdopt, onReplace, replace, replace, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitenter, returnExceptional, returnValue, returnVoidinstrumentationInfopublic static Probe insertProbe(ProbeNode.WrapperNode wrapper)
Probe associated with, and attached to, a Guest Language specific
instance of ProbeNode.WrapperNode.public static void insertProbeLite(ProbeNode.WrapperNode wrapper, TruffleEventReceiver eventReceiver)
ProbeLiteNode associated with, and attached to, a Guest Language
specific instance of ProbeNode.WrapperNode.