当前是否有用于创建此类分析报告的工具?
ruby-prof 和 pprof.rb 库很有用,但在我看来似乎提供了很多不必要的信息(不让我过滤掉所有的 Rails 代码)。最好是在类级别运行探查器,例如:
simple_profiler -c SomeClass
然后有一个从该类开始并通过代码工作的报告,并显示调用的时间(按时间或百分比)和数量每个类、每个方法和每一行。是否存在这样的东西或者我应该开始创建这个宝石? :)
The ruby-prof and pprof.rb libraries is useful but in my mind seem to give alot of unnecessary information (by not letting me filter out all of the rails code). What would be great would be to run a profiler at the class level, like:
simple_profiler -c SomeClass
and then have a report that starts at that class and works its way through the code and shows you how long (by time or %) and number of calls for each class, each method, and each line. Does something like this exist or should I get started creating this gem? :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 ruby-prof 可以消除方法,尽管这是别人的补丁,所以我实际上从未使用过它:
https://github.com/rdp/ruby-prof/blob/master/test/method_elimination_test.rb
I think ruby-prof can eliminate methods, though it was someone else's patch, so I haven't actually ever used it:
https://github.com/rdp/ruby-prof/blob/master/test/method_elimination_test.rb