Support for multiple events for same timestamp at checkpoint
authorBernd Hufmann <bhufmann@gmail.com>
Wed, 21 Nov 2012 20:10:45 +0000 (15:10 -0500)
committerBernd Hufmann <bhufmann@gmail.com>
Fri, 23 Nov 2012 01:18:09 +0000 (20:18 -0500)
commit3eade83c88d0895427fd8bf8bd4ecd91d587d495
treea51d8eee80dd3430c60ed6628bb2a851b0bf9556
parentbe13f34958904725dd1e8d27d651521c87071039
Support for multiple events for same timestamp at checkpoint

If a trace has multiple events with the same timestamps before
a checkpoint and at the checkpoint, the seek to this timestamp
used to return the event at the checkpoint. The implementation
was changed so that the first event in the trace with this
timestamp is returned.

Also the compareTo() method of TmfCheckpoint has been updated
to consider the checkpoint location if the timestamp to search
is equal to the timestamp of a checkpoint. This ensure that
the first checkpoint is found of multiple checkpoints with same
timestamp

Change-Id: I73fa8f19d8a2dcc45da10bd44eaaa4e402f4a0dd
Reviewed-on: https://git.eclipse.org/r/8758
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
IP-Clean: Bernd Hufmann <bhufmann@gmail.com>
Tested-by: Bernd Hufmann <bhufmann@gmail.com>
Reviewed-by: Bernd Hufmann <bhufmann@gmail.com>
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/AllTests.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfCheckpointIndexTest2.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/testfiles/A-Test-10K-2 [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfCheckpoint.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfCheckpointIndexer.java
This page took 0.025321 seconds and 5 git commands to generate.