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.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
On Apr 9, 10:30 am, Rob Lucas <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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?Looks like it will be fixed in 2.1: http://dev.rubyonrails.org/ticket/9176 Let''s hope they ship soon. Jeff softiesonrails.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeff Cohen wrote:> On Apr 9, 10:30�am, Rob Lucas <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> ''Wibble.some_action("someparam"=>"WER243")'' >> 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? > > Looks like it will be fixed in 2.1: > http://dev.rubyonrails.org/ticket/9176 > > Let''s hope they ship soon. > > Jeff > softiesonrails.comGreat. Thanks for the help on this. At least now I know I can patch this up by hand. Rob. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---