changeset 893:f8c2b0671f99

profilers: perfasm, unescape braces.
author shade
date Thu, 03 Jul 2014 14:36:04 +0400
parents 8a02e092fb3c
children 82b88f09fc2b
files jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java	Thu Jul 03 14:29:15 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java	Thu Jul 03 14:36:04 2014 +0400
@@ -621,7 +621,10 @@
                 ASMLine asmLine = new ASMLine(line);
                 if (line.contains("{method}")) {
                     if (elements.length == 7) {
-                        method = (elements[6].replace("/", ".") + "::" + elements[3]).replace("'", "").replace("'", "");
+                        method = (elements[6].replace("/", ".") + "::" + elements[3]).replace("'", "");
+                        method = method.replace("'", "");
+                        method = method.replace("&lt;", "<");
+                        method = method.replace("&gt;", ">");
                     }
                 } else if (elements.length >= 1 && elements[0].startsWith("0x")) {
                     // Seems to be line with address.