changeset 1299:71e429689f0f

7901539: perfasm should warn when no hot regions are amenable for disassembly
author shade
date Mon, 26 Oct 2015 20:53:30 +0300
parents d61e4bf92da1
children d2ece38a84fd
files jmh-core/src/main/java/org/openjdk/jmh/profile/AbstractPerfAsmProfiler.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/AbstractPerfAsmProfiler.java	Mon Oct 19 16:37:03 2015 +0300
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/AbstractPerfAsmProfiler.java	Mon Oct 26 20:53:30 2015 +0300
@@ -414,6 +414,12 @@
             }
         }
 
+        if (!headerPrinted) {
+            pw.printf("WARNING: No hottest code region above the threshold (%.2f%%) for disassembly.%n", regionRateThreshold * 100);
+            pw.println("Use \"hotThreshold\" profiler option to lower the filter threshold.");
+            pw.println();
+        }
+
         /**
          * 6. Print out the hottest regions
          */