lttng.ust: Replace timestamp.getValue() with toNanos()
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 5 Jul 2016 17:45:06 +0000 (13:45 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Wed, 6 Jul 2016 23:00:23 +0000 (19:00 -0400)
If a trace with a different time base is used, there will be no errors in time scales.

Change-Id: Ia13bb9ab0c98dda8d10cfb4d02ee62bf0a820fa0
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/76633
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Tested-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-by: Hudson CI
lttng/org.eclipse.tracecompass.lttng2.ust.core/src/org/eclipse/tracecompass/internal/lttng2/ust/core/analysis/memory/UstMemoryStateProvider.java

index 28dbc5bf6e8db889eef231a6043fa99b07441bc8..412b997c0a08024584a5d8e049d3d030f3751a2c 100644 (file)
@@ -188,7 +188,7 @@ public class UstMemoryStateProvider extends AbstractTmfStateProvider {
 
     private void setMem(ITmfEvent event, Long ptr, Long size) {
         ITmfStateSystemBuilder ss = checkNotNull(getStateSystemBuilder());
-        long ts = event.getTimestamp().getValue();
+        long ts = event.getTimestamp().toNanos();
         Long tid = getVtid(event);
 
         Long memoryDiff = size;
This page took 0.025952 seconds and 5 git commands to generate.