Fix initial trace time range.
authorPatrick Tasse <patrick.tasse@gmail.com>
Thu, 8 Nov 2012 16:30:13 +0000 (11:30 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Thu, 15 Nov 2012 20:45:37 +0000 (15:45 -0500)
commit9cbe7899ba0c3b336b9b27d76f77655f741709fb
treef8e877e765b71d22bd6e41893ac71dba5b157515
parent7a7f4c7268c49f004644e3bcb14be51dec895ee6
Fix initial trace time range.

The initial start time of TmfTrace is set to BIG_BANG so that the
initial time range is equal to NULL_RANGE. This allows to prevent
unnecessary histogram requests when a trace is opened.

Since its base class defaults to NULL_RANGE, it is no longer necessary
to explicitly set it in the TmfExperiment constructor.

Unit tests updated accordingly.

A fix is implemented in custom traces for possible NullPointerException
that uncovered this issue.

Change-Id: Ib1e49f372e1c5b1eaa3aecb972cc2b3830b3fbe3
Reviewed-on: https://git.eclipse.org/r/8603
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Bernd Hufmann <bhufmann@gmail.com>
IP-Clean: Bernd Hufmann <bhufmann@gmail.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfCheckpointIndexTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfTraceTest.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfExperiment.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/parsers/custom/CustomTxtTrace.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/parsers/custom/CustomXmlTrace.java
This page took 0.02472 seconds and 5 git commands to generate.