Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Tony Arcieri
RE: Strange ruby-prof 0.6.0 error on Ruby 1.9 [ reply ]  
2008-02-20 18:16
Yeah, this was my bad... I was following some instructions off someone's blog and they had me pass in integer in lieu of the options hash in one place. Whoops.

By: Charlie Savage
RE: Strange ruby-prof 0.6.0 error on Ruby 1.9 [ reply ]  
2008-02-20 06:06
Hmm,

Haven't seen that on 1.8.6. The code in question is:

def min_percent
@options[:min_percent] || 0
end

I don't see anything obviously wrong with it. What is the value of @options?

By: Tony Arcieri
Strange ruby-prof 0.6.0 error on Ruby 1.9 [ reply ]  
2008-02-19 19:51
When trying to display results (with FlatPrinter), I get the following:

%self total self wait child calls name
/usr/local/ruby1.9/lib/ruby/gems/1.9.0/gems/ruby-prof-0.6.0/lib/ruby-prof/abstract_printer.rb:26:in `[]': can't convert Symbol into Integer (TypeError)
from /usr/local/ruby1.9/lib/ruby/gems/1.9.0/gems/ruby-prof-0.6.0/lib/ruby-prof/abstract_printer.rb:26:in `min_percent'