changeset 1164:5fa3679cc741

perfnorm: a little polish in warning messages.
author shade
date Fri, 20 Mar 2015 11:20:06 +0300
parents 5bb27724a701
children 4ba1df6f80e3
files jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfNormProfiler.java
diffstat 1 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfNormProfiler.java	Thu Mar 19 22:57:16 2015 +0300
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/LinuxPerfNormProfiler.java	Fri Mar 20 11:20:06 2015 +0300
@@ -150,9 +150,6 @@
     }
 
     private Collection<? extends Result> process(BenchmarkResult br, File stdOut, File stdErr) {
-        StringWriter sw = new StringWriter();
-        PrintWriter pw = new PrintWriter(sw);
-
         Multiset<String> events = new HashMultiset<String>();
 
         FileReader fr = null;
@@ -214,15 +211,13 @@
 
             }
 
-            if (!IS_INCREMENTABLE) {
-                pw.println();
-                pw.println("WARNING: Your system uses old \"perf\", which can not print data incrementally (-I).\n" +
+            if (!IS_INCREMENTABLE || true) {
+                System.out.println();
+                System.out.println();
+                System.out.println("WARNING: Your system uses old \"perf\", which cannot print data incrementally (-I).\n" +
                         "Therefore, perf performance data includes benchmark warmup.");
             }
 
-            pw.flush();
-            pw.close();
-
             long totalOpts;
 
             BenchmarkResultMetaData md = br.getMetadata();