tmm1 / rbtrace

like strace, but for ruby code
MIT License
1.71k stars 65 forks source link

Add possibility to convert rbtrace output to flamegraph format #98

Open haukot opened 5 months ago

haukot commented 5 months ago

It adds option --convert=flamegraph, which converts rbtrace output to format from which you could create flamegraph.

It helped me to find a problem with timeout in DNS resolve, which was much harder to see with a sampling profiler.

After that I found that it is possible to make such a graph with ruby-prof(e.g. https://github.com/jlfwong/speedscope/wiki/Importing-from-ruby-prof)), but it would be nice if rbtrace also had this functionality.