开发者

Rails 3: How much time does a method takes to run

I want to rec开发者_运维技巧eive information concerning how much time does a method takes to run. How can I do that in rails without using NewRelic?


You can use ruby-prof.


You could use Ruby's Benchmark class... http://ruby-doc.org/stdlib/libdoc/benchmark/rdoc/classes/Benchmark.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜