ruby-changes:45215
From: nobu <ko1@a...>
Date: Sun, 8 Jan 2017 12:51:38 +0900 (JST)
Subject: [ruby-changes:45215] nobu:r57288 (trunk): driver.rb: measure_target option [ci skip]
nobu 2017-01-08 12:51:35 +0900 (Sun, 08 Jan 2017) New Revision: 57288 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57288 Log: driver.rb: measure_target option [ci skip] * benchmark/driver.rb (BenchmarkDriver.load): restore measure_target option from the loaded results. Modified files: trunk/benchmark/driver.rb Index: benchmark/driver.rb =================================================================== --- benchmark/driver.rb (revision 57287) +++ benchmark/driver.rb (revision 57288) @@ -50,6 +50,7 @@ class BenchmarkDriver https://github.com/ruby/ruby/blob/trunk/benchmark/driver.rb#L50 loop = results.assoc((n = "loop_whileloop#{i}").intern) || results.assoc(n) obj.instance_variable_set("@loop_wl#{i}", loop ? loop[1].map {|t,*|t} : nil) end + obj.instance_variable_set("@measure_target", opt[:measure_target] || opt["measure_target"]) obj end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/