M
Matt Mower
Hi folks,
I have some code which I wanted to run under the profiler but it's
raising an error within the profiler code:
c:/ruby/lib/ruby/1.8/profiler.rb:27: undefined method `[]' for
nil:NilClass (NoMethodError)
from c:/ruby/lib/ruby/1.8/profiler.rb:5:in `times'
from art.rb:119:in `times'
from art.rb:119
The code is:
http://matt.blogs.it/gems/art.rb
The profiler generates some output suggesting the error isn't thrown
immediately. However the code runs without any errors outside of the
profiler.
I had a look at profiler.rb but I can't make head nor tail of it.
From the section in PickAxe2 it doesn't suggest you need to modify
your code to make it compatible with the profiler.
Can anyone help me?
Regards,
Matt
p.s. I had *thought* someone recently posted a new, faster, profiler
but I'm starting to doubt my memory since I can't find any trace of it
in my GMail archive, google, or archived issues of Ruby Weekly News.
Did I imagine it?
I have some code which I wanted to run under the profiler but it's
raising an error within the profiler code:
c:/ruby/lib/ruby/1.8/profiler.rb:27: undefined method `[]' for
nil:NilClass (NoMethodError)
from c:/ruby/lib/ruby/1.8/profiler.rb:5:in `times'
from art.rb:119:in `times'
from art.rb:119
The code is:
http://matt.blogs.it/gems/art.rb
The profiler generates some output suggesting the error isn't thrown
immediately. However the code runs without any errors outside of the
profiler.
I had a look at profiler.rb but I can't make head nor tail of it.
From the section in PickAxe2 it doesn't suggest you need to modify
your code to make it compatible with the profiler.
Can anyone help me?
Regards,
Matt
p.s. I had *thought* someone recently posted a new, faster, profiler
but I'm starting to doubt my memory since I can't find any trace of it
in my GMail archive, google, or archived issues of Ruby Weekly News.
Did I imagine it?