changeset 183:6d995aa6d6de

Experimental Runner(Options, OutputFormat) constructor.
author shade
date Mon, 23 Sep 2013 22:45:52 +0400
parents 5287c524e154
children 07d522190f84
files jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java
diffstat 1 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java	Tue Sep 17 16:23:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java	Mon Sep 23 22:45:52 2013 +0400
@@ -70,9 +70,24 @@
 
     private final MicroBenchmarkList list;
 
+    /**
+     * THIS IS AN EXPERIMENTAL API.
+     *
+     * Create runner with the custom OutputFormat
+     * @param options options to use
+     * @param format OutputFormat to use
+     */
+    public Runner(Options options, OutputFormat format) {
+        super(options, format);
+        this.list = MicroBenchmarkList.defaultList();
+    }
+
+    /**
+     * Create Runner with the given options.
+     * @param options options to use.
+     */
     public Runner(Options options) {
-        super(options, createOutputFormat(options));
-        this.list = MicroBenchmarkList.defaultList();
+        this(options, createOutputFormat(options));
     }
 
     /** Setup helper method, creates OutputFormat according to argv options. */