bin/ruby-prof in ruby-prof-0.15.3 vs bin/ruby-prof in ruby-prof-0.15.4

- old
+ new

@@ -33,11 +33,10 @@ load_pre_execs end def setup_options @options = OpenStruct.new - options.measure_mode = RubyProf::PROCESS_TIME options.printer = RubyProf::FlatPrinter options.min_percent = 0 options.file = nil options.replace_prog_name = false options.specialized_instruction = false @@ -279,10 +278,10 @@ :specialized_instruction => options.specialized_instruction } end # Set the measure mode - RubyProf.measure_mode = options.measure_mode + RubyProf.measure_mode = options.measure_mode if options.measure_mode RubyProf.start_script(script) end end end