This project is archived and is in readonly mode.

#1804 ✓resolved
Jacob Kjeldahl

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

Reported by Jacob Kjeldahl | January 27th, 2009 @ 02:12 PM | in 2.x

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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages