tmf: Add a Double type for state values
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 10 Sep 2013 17:17:05 +0000 (13:17 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 11 Sep 2013 19:59:39 +0000 (15:59 -0400)
commita3c22e8eb720864bdd595f7a0bd6451417afc94a
treeb9ec1e20d63061d041bcc33000d392befd7f3b4e
parent6cd879003c02c8d033eb7b22adb968ae3cd2cdda
tmf: Add a Double type for state values

Double has a convenient Double.NaN value that cannot be attained
by "normal" means. We'll use this as the null representation of a
DoubleStateValue.

They are stored in the history tree the same way as Long state values:
by using a fixed 64-bit entry in the Strings section. If we start
using a lot of Long and Double values, eventually it might be worth
making the "valueOrOffset" field 64-bit to save space...

Change-Id: If59677565f16eaee947b9c4724fa7df7ef2239a9
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/16330
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/headless/GenerateTestValues.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/historytree/HTInterval.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/DoubleStateValue.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/ITmfStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/NullStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/TmfStateValue.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/statesystem/Messages.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/statesystem/TmfStateSystemExplorer.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/statesystem/messages.properties
This page took 0.047164 seconds and 5 git commands to generate.