public static interface ProbeNode.Instrumentable
Probe
that intercepts execution events at the node and routes them to any
Instrument
s that have been attached to the Probe
. Only one Probe
may
be installed at each node; subsequent calls return the one already installed.Instrument
Modifier and Type | Method and Description |
---|---|
Probe |
probe()
Enables "instrumentation" of a Guest Language Truffle node, where the node is presumed to
be part of a well-formed Truffle AST that is not being executed.
|
void |
probeLite(TruffleEventReceiver eventReceiver)
Enables a one-time, unchangeable "instrumentation" of a Guest Language Truffle node,
where the node is presumed to be part of a well-formed Truffle AST that is not being
executed.
|
Probe probe()
This interface is not intended to be visible as part of the API for tools (instrumentation clients).
Probe
associated with this node.void probeLite(TruffleEventReceiver eventReceiver)
probe()
, once
probeLite(TruffleEventReceiver)
is called at a node, no additional probing can
be added and no additional instrumentation can be attached.
This interface is not intended to be visible as part of the API for tools (instrumentation clients).
eventReceiver
- The TruffleEventReceiver
for the single "instrument" being
attached to this node.