rbspy

Sampling profiler for Ruby that shows where your code spends time

brewmacoslinux
Try with needOr install directly
Source

About

Sampling profiler for Ruby

Commands

rbspy

Examples

Profile a running Ruby process by PID$ rbspy record --pid 12345 --output profile.svg
Profile a Ruby script and generate a flame graph$ rbspy record --output flame.svg -- ruby script.rb
Show a summary of where time is spent in a process$ rbspy snapshot --pid 12345