Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/impl/ProbeManager.java @ 15944:eedf6c293639
Truffle: additional methods on ExecutionContext
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 27 May 2014 21:18:45 -0700 |
parents | 8c34e2cc4add |
children | 915ebb306fcc |
comparison
equal
deleted
inserted
replaced
15943:14ac87c56a27 | 15944:eedf6c293639 |
---|---|
78 public void addProbeListener(ProbeListener listener) { | 78 public void addProbeListener(ProbeListener listener) { |
79 assert listener != null; | 79 assert listener != null; |
80 probeListeners.add(listener); | 80 probeListeners.add(listener); |
81 } | 81 } |
82 | 82 |
83 public void removeProbeListener(ProbeListener removeListener) { | |
84 final List<ProbeListener> listeners = new ArrayList<>(probeListeners); | |
85 for (ProbeListener listener : listeners) { | |
86 if (listener == removeListener) { | |
87 probeListeners.remove(listener); | |
88 } | |
89 } | |
90 } | |
91 | |
83 public Probe getProbe(SourceSection sourceSection) { | 92 public Probe getProbe(SourceSection sourceSection) { |
84 assert sourceSection != null; | 93 assert sourceSection != null; |
85 | 94 |
86 ProbeImpl probe = srcToProbe.get(sourceSection); | 95 ProbeImpl probe = srcToProbe.get(sourceSection); |
87 | 96 |