analysis: improve graph statistics scalability
authorFrancis Giraldeau <francis.giraldeau@gmail.com>
Fri, 11 Sep 2015 19:44:36 +0000 (15:44 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 14 Sep 2015 18:36:38 +0000 (14:36 -0400)
commit49a4b3605db49caff6849ae319fda0ecd9770c55
treeeb4b23ae131e52d0b25447c896523ff3e1e2a788
parentff2990ed159e06483cbb324ac08cc1e8cedb063e
analysis: improve graph statistics scalability

The TmfGraphStatistics was keeping all duration values. Individual
values are not required to display summary statistics. Instead, this
patch updates the sum per IGraphWorker. Also, we introduce the fTotal
field and remove the special placeholder String key in the map, allowing
to rectify the keys type from Object to IGraphWorker.

* update v2:
  * synchronize only on fWorkerStats
  * make only one map lookup to update worker sum

Change-Id: I202945bdad6a0cb759b2fc4cbb791b3afef7c3cc
Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Reviewed-on: https://git.eclipse.org/r/55780
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
analysis/org.eclipse.tracecompass.analysis.graph.core.tests/src/org/eclipse/tracecompass/analysis/graph/core/tests/graph/TmfGraphTest.java
analysis/org.eclipse.tracecompass.analysis.graph.core/src/org/eclipse/tracecompass/internal/analysis/graph/core/base/TmfGraphStatistics.java
This page took 0.026681 seconds and 5 git commands to generate.