How to profile requests in a Rails 3 application

戏子无情 提交于 2019-12-07 08:20:39

问题


How to profile requests in a Rails 3 application?

This answer seems to only work in 2.*. How should I do this in Rails 3?


回答1:


Rack Mini Profiler is really good: https://github.com/SamSaffron/MiniProfiler/tree/master/Ruby




回答2:


I usually use https://github.com/newrelic/rpm new relic. It tells you which is the slowest call on render and it also gives you which line in your code does just that. Very informative and easy to use.




回答3:


Have you checked out the built in profiler?



来源:https://stackoverflow.com/questions/5302346/how-to-profile-requests-in-a-rails-3-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!