lib/benchmark_driver/runner/memory.rb in benchmark_driver-0.9.1 vs lib/benchmark_driver/runner/memory.rb in benchmark_driver-0.9.2
- old
+ new
@@ -84,9 +84,14 @@
executable: exec,
)
end
def with_script(script)
+ if @config.verbose >= 2
+ sep = '-' * 30
+ $stdout.puts "\n\n#{sep}[Script begin]#{sep}\n#{script}#{sep}[Script end]#{sep}\n\n"
+ end
+
Tempfile.open(['benchmark_driver-', '.rb']) do |f|
f.puts script
f.close
return yield(f.path)
end