changeset 1402:c1d41dff4583

7901872: Printing only the result "label" in the log is confusing
author shade
date Fri, 23 Dec 2016 16:48:55 +0100
parents 483b68ad4813
children 49d9f9db54fc
files jmh-core/src/main/java/org/openjdk/jmh/runner/format/TextReportFormat.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/format/TextReportFormat.java	Fri Dec 23 16:41:00 2016 +0100
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/format/TextReportFormat.java	Fri Dec 23 16:48:55 2016 +0100
@@ -185,14 +185,14 @@
                 Result r = result.getPrimaryResult();
                 String s = r.extendedInfo();
                 if (!s.trim().isEmpty()) {
-                    out.println("Result \"" + r.getLabel() + "\":");
+                    out.println("Result \"" + result.getParams().getBenchmark() + "\":");
                     out.println(s);
                 }
             }
             for (Result r : result.getSecondaryResults().values()) {
                 String s = r.extendedInfo();
                 if (!s.trim().isEmpty()) {
-                    out.println("Secondary result \"" + r.getLabel() + "\":");
+                    out.println("Secondary result \"" + result.getParams().getBenchmark() + ":" + r.getLabel() + "\":");
                     out.println(s);
                 }
             }