Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

script/performance/profiler fails when using ruby_prof and option graph_html

#1804

When running

script/performance/profiler "some ruby code" 1 graph_html

it fails with:

Loading Rails... Using the ruby-prof extension. /Library/Ruby/Gems/1.8/gems/ruby-prof-0.7.3/lib/ruby-prof/graph_html_printer.rb:51:in 'read': can't convert Fixnum into String (TypeError)

    from /Library/Ruby/Gems/1.8/gems/ruby-prof-0.7.3/lib/ruby-prof/graph_html_printer.rb:51:in 'print'
    from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/performance/profiler.rb:32
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in 'gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in 'require'
    from script/performance/profiler:3`

if ruby_prof is installed.

The problem is that the API for ruby_prof has changed so the 0 passed as a second parameter is no longer valid.

A patch is attached.

Reported by Jacob Kjeldahl · January 27th, 2009 @ 02:12 PM

State: resolved
Milestone: 2.x
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none