changeset 962:b6b8161b42a2

output: use "---" instead of "N/A" all over the place.
author shade
date Mon, 18 Aug 2014 15:30:32 +0400
parents 0e898fece0ec
children 83849e54f773
files jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java jmh-core/src/main/java/org/openjdk/jmh/results/format/TextResultFormat.java
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java	Mon Aug 18 15:13:15 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfAsmProfiler.java	Mon Aug 18 15:30:32 2014 +0400
@@ -765,7 +765,7 @@
         private final String output;
 
         public PerfResult(String output) {
-            super(ResultRole.SECONDARY, "@asm", of(Double.NaN), "N/A", AggregationPolicy.AVG);
+            super(ResultRole.SECONDARY, "@asm", of(Double.NaN), "---", AggregationPolicy.AVG);
             this.output = output;
         }
 
--- a/jmh-core/src/main/java/org/openjdk/jmh/results/format/TextResultFormat.java	Mon Aug 18 15:13:15 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/results/format/TextResultFormat.java	Mon Aug 18 15:30:32 2014 +0400
@@ -129,7 +129,7 @@
 
                 for (String k : params) {
                     String v = res.getParams().getParam(k);
-                    out.print(String.format("%" + paramLengths.get(k) + "s", (v == null) ? "N/A" : v));
+                    out.print(String.format("%" + paramLengths.get(k) + "s", (v == null) ? "---" : v));
                 }
 
                 Result pRes = res.getPrimaryResult();
@@ -149,7 +149,7 @@
 
                 for (String k : params) {
                     String v = res.getParams().getParam(k);
-                    out.print(String.format("%" + paramLengths.get(k) + "s", (v == null) ? "N/A" : v));
+                    out.print(String.format("%" + paramLengths.get(k) + "s", (v == null) ? "---" : v));
                 }
 
                 out.print(String.format("%" + modeLen + "s",        res.getParams().getMode().shortLabel()));