This project is archived and is in readonly mode.
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
-
DHH February 5th, 2009 @ 08:10 PM
- Assigned user set to Jeremy Kemper
-
Repository May 17th, 2009 @ 01:54 PM
- State changed from new to resolved
(from [d5f018eb103b63738f7f3b2374242fbdd40cfd63]) Supply valid ruby-prof parameters [#1804 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com
http://github.com/rails/rails/commit/d5f018eb103b63738f7f3b2374242f... -
Repository May 17th, 2009 @ 01:54 PM
(from [d6645a5e52308a3270bf11f8c71cbf7c7f9d48f3]) Supply valid ruby-prof parameters [#1804 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com
http://github.com/rails/rails/commit/d6645a5e52308a3270bf11f8c71cbf...
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
Tags
Referenced by
- 1804 script/performance/profiler fails when using ruby_prof and option graph_html (from [d5f018eb103b63738f7f3b2374242fbdd40cfd63]) Supply ...
- 1804 script/performance/profiler fails when using ruby_prof and option graph_html (from [d6645a5e52308a3270bf11f8c71cbf7c7f9d48f3]) Supply ...