Profiling Ruby Code

前端 未结 4 1902
萌比男神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:54

    There is also ruby -rprofile or equivalently from within Ruby source, require 'profile'

    Documentation:

    https://ruby-doc.org/stdlib-2.1.0/libdoc/profiler/rdoc/Profiler__.html

提交回复
热议问题