changeset 1021:07488524786d

7901082: perfasm should allow selecting Intel assembly syntax Summary: use -Djmh.perfasm.assemblySyntax=intel
author shade
date Mon, 03 Nov 2014 14:59:17 +0300
parents af27f02e778a
children 2cfeed0767c5
files jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java	Fri Oct 24 14:56:55 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java	Mon Nov 03 14:59:17 2014 +0300
@@ -150,6 +150,11 @@
      */
     private static final Boolean SKIP_TRACE_CL = Boolean.getBoolean("jmh.perfasm.skipTraceClassload");
 
+    /**
+     * Override the default assembly syntax
+     */
+    private static final String ASSEMBLY_SYNTAX = System.getProperty("jmh.perfasm.assemblySyntax");
+
     private String hsLog;
     private String perfBinData;
     private String perfParsedData;
@@ -179,6 +184,9 @@
             if (!SKIP_TRACE_CL) {
                 opts.add("-XX:+TraceClassLoading");
             }
+            if (ASSEMBLY_SYNTAX != null) {
+                opts.add("-XX:PrintAssemblyOptions=" + ASSEMBLY_SYNTAX);
+            }
             return opts;
         } else {
             return Collections.emptyList();