Ruby 中的 Profiling 工具

看看如何调试Ruby的性能问题 Ruby 内置的 profiler 内置的 profiler 实现的很简单,在 ruby2.2 中只有 150 行代码,大家可以看看它的实现profile.rb 。内置的 profiler 使用起来非常的方便,只需要加上-rprofile参数即可。例如: 执行: ruby -rprofile test.rb 输出结果为: % cumulative self
相关文章
相关标签/搜索