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
精彩评论