Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2013-06-04 18:22:53 +0000
committerPatrick Tasse2013-06-04 19:19:30 +0000
commit0ed7879deb4a66b4641b204f74ecdd9ebde045c0 (patch)
tree746f5a12e36f20e88f06c5d005b935b14a4b603a
parent3f7c3cb0089913bcf6a92139606f0212e3e3745f (diff)
downloadorg.eclipse.linuxtools-0ed7879deb4a66b4641b204f74ecdd9ebde045c0.tar.gz
org.eclipse.linuxtools-0ed7879deb4a66b4641b204f74ecdd9ebde045c0.tar.xz
org.eclipse.linuxtools-0ed7879deb4a66b4641b204f74ecdd9ebde045c0.zip
Prevent broadcasting of range updated signal for streaming trace
Change-Id: Id0326bc28aab0739dc140f73ee1cd502f8dead65 Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com> Reviewed-on: https://git.eclipse.org/r/13556 Tested-by: Hudson CI Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com> IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com> Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java
index a698f9540a..8543d66ff1 100644
--- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java
+++ b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java
@@ -677,11 +677,18 @@ public abstract class TmfTrace extends TmfEventProvider implements ITmfTrace {
}
if (signal.getTrace() == this) {
- /* Additionally, the signal is directly for this trace or experiment. */
+ /* Additionally, the signal is directly for this trace. */
if (getNbEvents() == 0) {
return;
}
+ /* For a streaming trace, the range updated signal should be sent
+ * by the subclass when a new safe time is determined.
+ */
+ if (getStreamingInterval() > 0) {
+ return;
+ }
+
final TmfTimeRange timeRange = new TmfTimeRange(getStartTime(), TmfTimestamp.BIG_CRUNCH);
final TmfTraceRangeUpdatedSignal rangeUpdatedsignal = new TmfTraceRangeUpdatedSignal(this, this, timeRange);

Back to the top