Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2013-06-04 18:22:53 +0000
committerPatrick Tasse2013-06-04 19:22:44 +0000
commite4fd99f0a82f92bb73607d5f6f2ee887b5b75e4d (patch)
tree15bcd97ac8c90d4043dcfb85b0ad1800df4ec520
parent876d59c0dabab1fa4839d082a1589841ca79ef30 (diff)
downloadorg.eclipse.linuxtools-e4fd99f0a82f92bb73607d5f6f2ee887b5b75e4d.tar.gz
org.eclipse.linuxtools-e4fd99f0a82f92bb73607d5f6f2ee887b5b75e4d.tar.xz
org.eclipse.linuxtools-e4fd99f0a82f92bb73607d5f6f2ee887b5b75e4d.zip
Prevent broadcasting of range updated signal for streaming trace
Cherry-pick of commit 0ed7879deb4a66b4641b204f74ecdd9ebde045c0 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