comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Probe.java @ 18338:c4f374adce13

Probe interface should extend NodeInterface
author Andreas Woess <andreas.woess@jku.at>
date Tue, 11 Nov 2014 14:24:21 +0100
parents 7bfbad29d331
children e3c95cbbb50c
comparison
equal deleted inserted replaced
18337:3432571b7189 18338:c4f374adce13
22 * or visit www.oracle.com if you need additional information or have any 22 * or visit www.oracle.com if you need additional information or have any
23 * questions. 23 * questions.
24 */ 24 */
25 package com.oracle.truffle.api.instrument; 25 package com.oracle.truffle.api.instrument;
26 26
27 import com.oracle.truffle.api.nodes.*;
27 import com.oracle.truffle.api.source.*; 28 import com.oracle.truffle.api.source.*;
28 29
29 /** 30 /**
30 * A collector of {@link ExecutionEvents} at a specific site (node) in a Truffle AST (generated by a 31 * A collector of {@link ExecutionEvents} at a specific site (node) in a Truffle AST (generated by a
31 * {@link Wrapper} inserted into the AST) for the purpose of <em>instrumentation</em>. For probes 32 * {@link Wrapper} inserted into the AST) for the purpose of <em>instrumentation</em>. For probes
47 * should also be invalidated. 48 * should also be invalidated.
48 * 49 *
49 * @see Instrument 50 * @see Instrument
50 * @see Wrapper 51 * @see Wrapper
51 */ 52 */
52 public interface Probe extends ExecutionEvents, SyntaxTagged { 53 public interface Probe extends ExecutionEvents, SyntaxTagged, NodeInterface {
53 54
54 /** 55 /**
55 * Get the {@link SourceSection} in some Truffle AST associated with this probe. 56 * Get the {@link SourceSection} in some Truffle AST associated with this probe.
56 * 57 *
57 * @return The source associated with this probe. 58 * @return The source associated with this probe.