summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorBernd Hufmann2012-11-13 10:17:17 (EST)
committer Bernd Hufmann2012-11-15 13:30:05 (EST)
commita8527773e1f487db3a8a3b7b644775e47937eade (patch)
treef428761e2eadb1ba8324703e3be43e12089918c7
parent72759a60609eee6a5fe0523d47e164324d45fedc (diff)
downloadorg.eclipse.linuxtools-a8527773e1f487db3a8a3b7b644775e47937eade.zip
org.eclipse.linuxtools-a8527773e1f487db3a8a3b7b644775e47937eade.tar.gz
org.eclipse.linuxtools-a8527773e1f487db3a8a3b7b644775e47937eade.tar.bz2
Remove seek(time) from CtfTmfTrace and use parent implementationrefs/changes/19/8719/2
The implementation of CtfTmfTrace of seek by timestamp worked correctly to seek within the CTF trace. However, the returned context contains an incorrect rank of always 0. This incorrect rank will cause a wrong selected event in the TmfEventsTable if the trace is used directly and not through an experiment. The solution is to use the TmfTrace implementation of seek(time) instead which is handling the rank correctly. Change-Id: Ie28c88c8e3263cbcb42349bb033cc61f69634a72 Reviewed-on: https://git.eclipse.org/r/8719 Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com> IP-Clean: Patrick Tasse <patrick.tasse@gmail.com> Tested-by: Patrick Tasse <patrick.tasse@gmail.com> Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java
index aa503fc..f48dcfc 100644
--- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java
+++ b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java
@@ -172,17 +172,6 @@ public class CtfTmfTrace extends TmfTrace implements ITmfEventParser {
/ (endTime - startTime);
}
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.tmf.core.trace.TmfTrace#seekEvent(org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp)
- */
- @Override
- public synchronized ITmfContext seekEvent(ITmfTimestamp timestamp) {
- CtfTmfLightweightContext iter = new CtfTmfLightweightContext(this);
- /* seek the context to the timestamp value in nanoseconds */
- iter.seek(timestamp.normalize(0, ITmfTimestamp.NANOSECOND_SCALE).getValue());
- return iter;
- }
-
/**
* Method seekEvent.
* @param location ITmfLocation<?>