1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Supply valid ruby-prof parameters [#1804 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
Jacob Kjeldahl 2009-01-27 15:00:18 +01:00 committed by Pratik Naik
parent 25724eede9
commit d6645a5e52

View file

@ -29,7 +29,7 @@ begin
printer_class = RubyProf::FlatPrinter
end
printer = printer_class.new(results)
printer.print($stderr, 0)
printer.print($stderr)
rescue LoadError
require "prof"
$stderr.puts 'Using the old ruby-prof extension.'