flamegraph: fix invalid window range
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Wed, 24 Aug 2016 14:31:03 +0000 (10:31 -0400)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Wed, 24 Aug 2016 19:43:58 +0000 (15:43 -0400)
When loading a flamegraph we need to reset the start
and finish time so that the time range is fixed and the
whole flame graph range is displayed.

Otherwise, we end up showing a range of 1 ns after
zooming once and switching the trace.

Change-Id: I85e950754e1361c7fe31739a280a3b14152751aa
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/79633
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
analysis/org.eclipse.tracecompass.analysis.timing.ui/src/org/eclipse/tracecompass/internal/analysis/timing/ui/flamegraph/FlameGraphView.java

index 695c0f00d0298727450ad4718ab824724899d85a..575fcf926019d26247905878d8a02f0134e7e57c 100644 (file)
@@ -166,6 +166,7 @@ public class FlameGraphView extends TmfView {
                 callGraphAnalysis.waitForCompletion(monitor);
                 Display.getDefault().asyncExec(() -> {
                     fTimeGraphViewer.setInput(callGraphAnalysis.getThreadNodes());
+                    fTimeGraphViewer.resetStartFinishTime();
                 });
                 return Status.OK_STATUS;
             }
This page took 0.025912 seconds and 5 git commands to generate.