changeset 130:50aebd311a4c

Purge OutputFormat.threadSubStatistics().
author shade
date Wed, 21 Aug 2013 20:24:34 +0400
parents 354a59456647
children 59b8ba356d64
files jmh-core/src/main/java/org/openjdk/jmh/output/format/CsvFormat.java jmh-core/src/main/java/org/openjdk/jmh/output/format/OutputFormat.java jmh-core/src/main/java/org/openjdk/jmh/output/format/PrettyPrintFormat.java jmh-core/src/main/java/org/openjdk/jmh/output/format/SilentFormat.java
diffstat 4 files changed, 0 insertions(+), 40 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/output/format/CsvFormat.java	Wed Aug 21 20:18:56 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/output/format/CsvFormat.java	Wed Aug 21 20:24:34 2013 +0400
@@ -132,8 +132,4 @@
         out.println(DELIMITER);
     }
 
-    @Override
-    public void threadSubStatistics(BenchmarkRecord name, int threads, RunResult result) {
-
-    }
 }
--- a/jmh-core/src/main/java/org/openjdk/jmh/output/format/OutputFormat.java	Wed Aug 21 20:18:56 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/output/format/OutputFormat.java	Wed Aug 21 20:24:34 2013 +0400
@@ -124,15 +124,6 @@
      */
     public void detailedResults(BenchmarkRecord name, int iteration, int threads, IterationResult results);
 
-    /**
-     * Format for sub-thread statistics.
-     *
-     * @param name      benchmark name
-     * @param threads   thread count
-     * @param result    result of iterations of the current threadcount
-     */
-    public void threadSubStatistics(BenchmarkRecord name, int threads, RunResult result);
-
     /* ------------- SPECIAL TRACING METHODS -------------------- */
 
     void exception(Throwable ex);
--- a/jmh-core/src/main/java/org/openjdk/jmh/output/format/PrettyPrintFormat.java	Wed Aug 21 20:18:56 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/output/format/PrettyPrintFormat.java	Wed Aug 21 20:24:34 2013 +0400
@@ -172,27 +172,6 @@
         out.println();
     }
 
-    @Override
-    public void threadSubStatistics(BenchmarkRecord name, int threads, RunResult result) {
-        out.println();
-
-        for (String label : result.getStatistics().keySet()) {
-            Statistics statistics = result.getStatistics().get(label);
-            String prefix = "Thread sub-statistics for " + threads + ' ' + getThreadsString(threads) + ", label = " + label;
-            if (statistics.getN() > 2) {
-                double[] interval95 = statistics.getConfidenceInterval(0.05);
-                double[] interval99 = statistics.getConfidenceInterval(0.01);
-                out.println(String.format("%s: %.3f \u00B1(95%%) %.3f \u00B1(99%%) %.3f",
-                        prefix, (interval95[0] + interval95[1]) / 2,
-                        (interval95[1] - interval95[0]) / 2, (interval99[1] - interval99[0]) / 2));
-            } else {
-                out.println(String.format("%s: %.3f (<= 2 iterations)", prefix, statistics.getMean()));
-            }
-            out.println();
-        }
-
-    }
-
     protected static String getThreadsString(int t) {
         if (t > 1) {
             return "threads";
--- a/jmh-core/src/main/java/org/openjdk/jmh/output/format/SilentFormat.java	Wed Aug 21 20:18:56 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/output/format/SilentFormat.java	Wed Aug 21 20:24:34 2013 +0400
@@ -87,10 +87,4 @@
     public void warmupIterationResult(BenchmarkRecord benchmark, int iteration, int thread, IterationResult result) {
     }
 
-    @Override
-    public void threadSubStatistics(BenchmarkRecord name, int threads, RunResult results) {
-
-    }
-
-
 }