Rails Profiling problems with RubyProf

Hi,

I'm running into trouble trying to do some basic profiling of my app with RubyProf. I've done the usual searching around on Google, and not found anything. I've also tried updating my version of the RubyProf gem, in case there was any problem with it being out of date.

I'm trying to run the profiler script from within my rails app like so:

ruby script/performance/profiler 'Wibble.some_action("someparam"=>"WER243")'

This is the stacktrace I get:

Loading Rails... Using the ruby-prof extension. /some/rails/app/vendor/rails/railties/lib/commands/performance/profiler.rb:22: undefined method `clock_mode=' for RubyProf:Module (NoMethodError)         from script/performance/profiler:3:in `require'         from script/performance/profiler:3

Looking around at a couple of different rails apps that I have, it seems that this "clock_mode" method is pretty standard.

Anyone got any ideas?

Thanks in advance,

Rob.

Looks like it will be fixed in 2.1: http://dev.rubyonrails.org/ticket/9176

Let's hope they ship soon.

Jeff softiesonrails.com