changeset 863:251f914ff0c1

profilers: perfasm, do not print warning message when skipping assembly.
author shade
date Fri, 27 Jun 2014 17:39:01 +0400
parents 556673b8b4e3
children d43d5b30f721
files jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java	Fri Jun 27 17:28:55 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java	Fri Jun 27 17:39:01 2014 +0400
@@ -238,6 +238,10 @@
         Assembly assembly = readAssembly(stdOut);
         if (!assembly.isEmpty()) {
             pw.printf("PrintAssembly processed: %d total lines%n", assembly.size());
+        } else if (SKIP_ASSEMBLY) {
+            pw.println();
+            pw.println("PrintAssembly skipped, Java methods are not resolved.");
+            pw.println();
         } else {
             pw.println();
             pw.println("No assembly, make sure your JDK is PrintAssembly-enabled:\n    https://wikis.oracle.com/display/HotSpotInternals/PrintAssembly");