tmf: Store totals separately in TmfStatistics
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 25 Oct 2012 21:19:21 +0000 (17:19 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 30 Oct 2012 21:05:17 +0000 (17:05 -0400)
commitdf310609b0bb3d4cb611c71e888056ebcb90fd07
treec76d3b1a62e9a2807565ccf30483c4771719d4ea
parent00419b1f24089a6c21d0c3dd0af903562c728863
tmf: Store totals separately in TmfStatistics

This allows the get*Total() methods to query the state directly.
With that, no need to get the map of events per type (which was
already longer by itself), and then add its contents at every
single query.

Change-Id: I2e6708a2708abcdae6cd68baab9b6c26a2cc2d30
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/8380
Tested-by: Hudson CI
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statistics/StatsStateProvider.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statistics/TmfStatistics.java
This page took 0.032297 seconds and 5 git commands to generate.