Profiling Ruby Code

前端 未结 4 1871
萌比男神i
萌比男神i 2020-12-14 06:39

Besides ruby-prof and and the core Benchmark class, what do you use to profile your Ruby code? In particular, how do you find the bottlenecks in your code? It almost feels l

4条回答
  •  有刺的猬
    2020-12-14 06:50

    This is my own question, but I found a tool that's so amazing for profiling that I have to add it here:

    http://samsaffron.com/archive/2013/03/19/flame-graphs-in-ruby-miniprofiler

    Flamegraphs make the source of performance problems amazingly obvious, relative to looking at backtraces.

提交回复
热议问题