I have some slow actions that I wanted to see which calls in them were
eating all the rendering time. I found the action_profiler gem from: http://rails-analyzer.rubyforge.org/
The problem is the gem doesn’t work. It seems to be an issue with edge
since it runs fine on a virgin app running on the rails gems.
It seems to be loading some rails files from the gems, and some from the
vendor/rails directory of my app, as seen in the below trace.
Any ideas on how to make action_profiler work on edge?
./config/…/vendor/rails/activerecord/lib/active_record/deprecated_finders.rb:13:
undefined method deprecate' for #<Class:ActiveRecord::Base> (NoMethodError) from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
from
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in require' from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:inrequire’
from
./config/…/vendor/rails/activerecord/lib/active_record/base.rb:4
from
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require’
from
./config/…/vendor/rails/activerecord/lib/active_record.rb:37
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.