aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Denis2012-08-23 17:03:32 (EDT)
committerAlexandre Montplaisir2012-08-24 15:53:38 (EDT)
commit72c1dc07536399270f28f69e3fccc07b869caa9a (patch)
treeca51d2e20a285adb2423a1069f419110d87b3b4f
parent5fca88a64e6717627424e8882e2228c28a32a48d (diff)
downloadorg.eclipse.linuxtools-72c1dc07536399270f28f69e3fccc07b869caa9a.zip
org.eclipse.linuxtools-72c1dc07536399270f28f69e3fccc07b869caa9a.tar.gz
org.eclipse.linuxtools-72c1dc07536399270f28f69e3fccc07b869caa9a.tar.bz2
tmf: Correct event type in statistics
Use the eventType.getName() rather than eventType.toString() for the event type name to show in the statistics. Change-Id: I55e17249b84b8ae2d28405c3036b089ea90c6507 Signed-off-by: Mathieu Denis <mathieu.denis@polymtl.ca> Reviewed-on: https://git.eclipse.org/r/7384 Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im> IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im> Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im> Reviewed-by: Bernd Hufmann <bhufmann@gmail.com> IP-Clean: Bernd Hufmann <bhufmann@gmail.com> Tested-by: Bernd Hufmann <bhufmann@gmail.com>
-rwxr-xr-xlttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/model/TmfBaseStatisticsTree.java3
1 files changed, 2 insertions, 1 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 a1f0348..ee1c68a 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
@@ -238,7 +238,8 @@ public class TmfBaseStatisticsTree extends AbsTmfStatisticsTree {
@SuppressWarnings({ "rawtypes", "unchecked" })
protected TmfFixedArray<String>[] getTypePaths(ITmfEvent event, ITmfExtraEventInfo extraInfo) {
String trace = extraInfo.getTraceName();
- String type = event.getType().toString();
+ // Take only the event type name
+ String type = event.getType().getName();
TmfFixedArray[] paths = { new TmfFixedArray<String>(trace, HEADER_EVENT_TYPES, type) };