使用ruby-prof分析使用ruby 1.8.7和1.9.2的rails应用程序

时间:2013-02-05 06:56:09

标签: ruby-on-rails ruby rubygems

我正在尝试分析运行ruby 1.8.7和1.9.2的rails应用程序。我已经按照指定here的说明进行操作,但是我收到一些奇怪的错误,上面写着“未定义的方法reverse_merge!”。我不明白为什么它会显示那些错误。如果我在开发模式或生产模式下运行我的应用程序它工作正常,如果我尝试在配置文件模式下运行相同,我收到此错误。

`call': undefined method `reverse_merge!' for #<Proc:0x7fab9b26e500> (NoMethodError)
    from /home/jeevan/.rvm/gems/ruby-1.8.7-p371/gems/railties-3.0.7/lib/rails/application.rb:77:in `send'
    from /home/jeevan/.rvm/gems/ruby-1.8.7-p371/gems/railties-3.0.7/lib/rails/application.rb:77:in `method_missing'
    from /home/jeevan/.rvm/gems/ruby-1.8.7-p371/gems/rack-1.2.2/lib/rack/builder.rb:73:in `to_app'
    from /home/jeevan/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `inject'
    from /home/jeevan/.rvm/gems/ruby-1.8.7-p371/gems/rack-1.2.2/lib/rack/builder.rb:73:in `each'
    from /home/jeevan/.rvm/gems/ruby-1.8.7-p371/gems/rack-1.2.2/lib/rack/builder.rb:73:in `inject'
    from /home/jeevan/.rvm/gems/ruby-1.8.7-p371/gems/rack-1.2.2/lib/rack/builder.rb:73:in `to_app'

0 个答案:

没有答案