public abstract class ProbeNode extends Node implements TruffleEventReceiver, InstrumentationNode
Probe
s to ProbeNode.WrapperNode
s.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
Instrument s 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, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
enter, returnExceptional, returnValue, returnVoid
instrumentationInfo
public 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
.