Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/impl/DefaultProbeListener.java @ 22250:0fb3522e5b72
Truffle/Instrumentation: The ProbeListener start/stop methods now pass the RootNode instead of the Source; a comment on the RootNode constructor encourages implementations to provide *some* SourceSection instance with every RootNode, which may be one created by SourceSection.createUnavailable(String kind, String name) which makes tracing/debugging much more useful.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Thu, 24 Sep 2015 13:15:45 -0700 |
parents | dc83cc1f94f2 |
children |
comparison
equal
deleted
inserted
replaced
22249:bda4b68f2e07 | 22250:0fb3522e5b72 |
---|---|
25 package com.oracle.truffle.api.instrument.impl; | 25 package com.oracle.truffle.api.instrument.impl; |
26 | 26 |
27 import com.oracle.truffle.api.instrument.Probe; | 27 import com.oracle.truffle.api.instrument.Probe; |
28 import com.oracle.truffle.api.instrument.ProbeListener; | 28 import com.oracle.truffle.api.instrument.ProbeListener; |
29 import com.oracle.truffle.api.instrument.SyntaxTag; | 29 import com.oracle.truffle.api.instrument.SyntaxTag; |
30 import com.oracle.truffle.api.source.Source; | 30 import com.oracle.truffle.api.nodes.RootNode; |
31 | 31 |
32 public abstract class DefaultProbeListener implements ProbeListener { | 32 public abstract class DefaultProbeListener implements ProbeListener { |
33 | 33 |
34 public void startASTProbing(Source source) { | 34 public void startASTProbing(RootNode rootNode) { |
35 } | 35 } |
36 | 36 |
37 public void newProbeInserted(Probe probe) { | 37 public void newProbeInserted(Probe probe) { |
38 } | 38 } |
39 | 39 |
40 public void probeTaggedAs(Probe probe, SyntaxTag tag, Object tagValue) { | 40 public void probeTaggedAs(Probe probe, SyntaxTag tag, Object tagValue) { |
41 } | 41 } |
42 | 42 |
43 public void endASTProbing(Source source) { | 43 public void endASTProbing(RootNode rootNode) { |
44 } | 44 } |
45 | 45 |
46 } | 46 } |