Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java
index 8162caf2ce..112f5882db 100644
--- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java
+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java
@@ -441,9 +441,14 @@ public class PerfCore {
if (monitor != null && monitor.isCanceled()) { RefreshView(); return; }
// line containing report information
if ((line.startsWith("#"))) {
- if (line.contains("Events:")) {
+ if (line.contains("Events:") || line.contains("Samples:")) {
String[] tmp = line.trim().split(" ");
- currentEvent = new PMEvent(tmp[tmp.length - 1]);
+ String event = tmp[tmp.length - 1];
+ // In this case, the event name is single quoted
+ if (line.contains("Samples:")){
+ event = event.substring(1, event.length() -1);
+ }
+ currentEvent = new PMEvent(event);
invisibleRoot.addChild(currentEvent);
currentCommand = null;
currentDso = null;

Back to the top