分析 ruby / ruby on Rails 应用程序
我希望从概念上理解分析 ruby 或 ruby on Rails 程序的所有内容(例如内存使用情况、请求分派速度、与 DB 等外部程序连接的速度)以及最好的工具是什么(在概念和基础层面上) )可用的。
I am looking to understand conceptually what all goes in profiling a ruby or ruby on rails program (e.g. memory usage, speed of request dispatching, speed of connecting with external programs like DB) and what are the best tools (at a conceptual and fundamental level) that are available.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不知道这是否有帮助,但我在某处读到文章说,Java 是 Ruby on Rails 应用程序的最佳分析器。这个想法是在 JRuby 上运行它们并使用 JProfiler 或其他 Java 分析工具来分析您的 Rails 应用程序。
我知道的另一种可能性可能是 Relic RPM,商业应用程序,特别是用于分析 Rails 应用程序。
I don't know if it helps, but I read somewhere article saying, that Java is the best profiler for Ruby on Rails applications. The idea was to run them on JRuby and use JProfiler or other Java profiling tools to profile your Rails application.
Another possibility that I know of might be the Relic RPM, commercial application especially for profiling Rails applications.
如果您在 Mac 上编程,您可能需要查看 DTrace。
我个人现在使用的是linux,所以我不能说它的价值,但是我在各种Rails 书籍中看到它多次被提及。
它最初是由 Sun 开发的,用于在 Solaris 上运行,但我相信它现在预装在 Mac OS X Leopard 上。
If you program on a Mac, you might want to check out DTrace.
I personally use linux at the moment, so I can't speak to it's worth, but I've seen it mentioned quite a few times in various Rails books.
It was originally developed by Sun to run on Solaris, but I believe it now comes pre-installed on Mac OS X Leopard.
你应该看看 Joe Damato 的 用于 Ruby 的内存分析器
也值得看看他的 ltrace 补丁
You should look at Joe Damato's memory-profiler for Ruby
Also worth looking at is his ltrace patch
我研究了很多工具(memory-profiler、rb-prof...),最后使用: oink
I have investigated many tools (memory-profiler, rb-prof...) , and finally used: oink