开发者

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

开发者 https://www.devze.com 2023-03-21 19:33 出处:网络
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 Benchmar

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

精彩评论

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