Ruby rprofile

Ruby 内置 Profiler,使用 ruby -rprofile <script.rb> 调用。

对于 Rails,可以执行 rails -rprofile <task> 调用。