Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/TmfBaseStatisticsTree.java')
-rwxr-xr-xlttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/TmfBaseStatisticsTree.java25
1 files changed, 23 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/TmfBaseStatisticsTree.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/TmfBaseStatisticsTree.java
index 4df3f3f9cc..a1f034840a 100755
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/TmfBaseStatisticsTree.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/TmfBaseStatisticsTree.java
@@ -163,8 +163,16 @@ public class TmfBaseStatisticsTree extends AbsTmfStatisticsTree {
* (org.eclipse.linuxtools.tmf.core.event.ITmfEvent, org.eclipse.linuxtools.tmf.ui.viewers.statistics.ITmfExtraEventInfo, int)
*/
@Override
- public void increase(ITmfEvent event, ITmfExtraEventInfo extraInfo, int values) {
- // Do nothing
+ public void registerEvent(ITmfEvent event, ITmfExtraEventInfo extraInfo, int values) {
+ TmfFixedArray<String>[] paths = getNormalPaths(event, extraInfo);
+ for (TmfFixedArray<String> path : paths) {
+ getOrCreate(path).getValue().incrementTotal(values);
+ }
+
+ paths = getTypePaths(event, extraInfo);
+ for (TmfFixedArray<String> path : paths) {
+ getOrCreate(path).getValue().incrementTotal(values);
+ }
}
/*
@@ -186,6 +194,19 @@ public class TmfBaseStatisticsTree extends AbsTmfStatisticsTree {
}
}
+ @Override
+ public void registerEventInTimeRange(ITmfEvent event, ITmfExtraEventInfo extraInfo, int qty) {
+ TmfFixedArray<String>[] paths = getNormalPaths(event, extraInfo);
+ for (TmfFixedArray<String> path : paths) {
+ getOrCreate(path).getValue().incrementPartial(qty);
+ }
+
+ paths = getTypePaths(event, extraInfo);
+ for (TmfFixedArray<String> path : paths) {
+ getOrCreate(path).getValue().incrementPartial(qty);
+ }
+ }
+
/*
* (non-Javadoc)
*

Back to the top