Prevent broadcasting of range updated signal for streaming trace
authorPatrick Tasse <patrick.tasse@gmail.com>
Tue, 4 Jun 2013 18:22:53 +0000 (14:22 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Tue, 4 Jun 2013 19:19:30 +0000 (15:19 -0400)
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>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java

index a698f9540a6536a06a53c9684bf9d17372a955c5..8543d66ff16a97e955db766321d18d1387d89eb9 100644 (file)
@@ -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);
 
This page took 0.0267 seconds and 5 git commands to generate.