Class ProbeNode
- java.lang.Object
-
- com.oracle.truffle.api.nodes.Node
-
- com.oracle.truffle.api.instrument.ProbeNode
-
- All Implemented Interfaces:
InstrumentationNode,TruffleEventReceiver,NodeInterface,java.lang.Cloneable
public abstract class ProbeNode extends Node implements TruffleEventReceiver, InstrumentationNode
Implementation interfaces and classes for attachingProbes toProbeNode.WrapperNodes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceProbeNode.InstrumentableAny Truffle node implementing this interface can be "instrumented" by installing aProbethat intercepts execution events at the node and routes them to anyInstruments that have been attached to theProbe.static interfaceProbeNode.WrapperNodeA node that can be inserted into a Truffle AST, and which enables instrumentation at a particular Guest Language (GL) node.-
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
Node.Child, Node.Children
-
-
Constructor Summary
Constructors Constructor Description ProbeNode()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ProbegetProbe()static ProbeinsertProbe(ProbeNode.WrapperNode wrapper)Create a newProbeassociated with, and attached to, a Guest Language specific instance ofProbeNode.WrapperNode.static voidinsertProbeLite(ProbeNode.WrapperNode wrapper, TruffleEventReceiver eventReceiver)Creates a newProbeNode.ProbeLiteNodeassociated with, and attached to, a Guest Language specific instance ofProbeNode.WrapperNode.-
Methods inherited from class com.oracle.truffle.api.nodes.Node
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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.oracle.truffle.api.instrument.InstrumentationNode
instrumentationInfo
-
Methods inherited from interface com.oracle.truffle.api.instrument.TruffleEventReceiver
enter, returnExceptional, returnValue, returnVoid
-
-
-
-
Method Detail
-
insertProbe
public static Probe insertProbe(ProbeNode.WrapperNode wrapper)
Create a newProbeassociated with, and attached to, a Guest Language specific instance ofProbeNode.WrapperNode.
-
insertProbeLite
public static void insertProbeLite(ProbeNode.WrapperNode wrapper, TruffleEventReceiver eventReceiver)
Creates a newProbeNode.ProbeLiteNodeassociated with, and attached to, a Guest Language specific instance ofProbeNode.WrapperNode.
-
-