ss: Fix a bug where history tree node utilization is inaccurate
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Tue, 28 Jul 2015 03:05:33 +0000 (23:05 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Wed, 29 Jul 2015 01:43:58 +0000 (21:43 -0400)
When a node is read from a file, the size of interval section is left at 0,
so using that metric to monitor the performance of the state system was
misleading.

Change-Id: I885a41ae744ea7f38dd25f1adce42268fe2fbd6f
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/52681
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Hudson CI
statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/internal/statesystem/core/backend/historytree/HTNode.java

index 688c7212b8d89b8946906affed9868112b22c32a..2f91b5182c45351437f655455faf30f41d93d005 100644 (file)
@@ -206,7 +206,9 @@ public abstract class HTNode {
          * should only have the intervals left
          */
         for (i = 0; i < intervalCount; i++) {
-            newNode.intervals.add(HTInterval.readFrom(buffer));
+            HTInterval interval = HTInterval.readFrom(buffer);
+            newNode.intervals.add(interval);
+            newNode.sizeOfIntervalSection += interval.getIntervalSize();
         }
 
         /* Assign the node's other information we have read previously */
This page took 0.029718 seconds and 5 git commands to generate.