changeset 1253:e801861b0f09

7901461: perfnorm: do not report CPI=NaN when not enough counters are available
author shade
date Wed, 08 Jul 2015 00:30:15 +0300
parents 8aaae8226846
children 136a27b73ec5
files jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfNormProfiler.java
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfNormProfiler.java	Wed Jul 08 00:24:16 2015 +0300
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfNormProfiler.java	Wed Jul 08 00:30:15 2015 +0300
@@ -292,8 +292,6 @@
                     long instructions = events.count("instructions");
                     if (cycles != 0 && instructions != 0) {
                         results.add(new PerfResult("CPI", 1.0 * cycles / instructions));
-                    } else {
-                        results.add(new PerfResult("CPI", Double.NaN));
                     }
                 }