Back to Browse

Porting flamegraph to Rust — part 2

23.9K views
Feb 3, 2019
5:47:38

In this stream, we're continuing our work to port the flamegraph profiling tool to Rust: http://www.brendangregg.com/flamegraphs.html. In this part, we focused on the actual flame graph generation (that is, the SVG), and thus on porting the flamegraph.pl script that does all the rendering: https://github.com/brendangregg/FlameGraph/blob/master/flamegraph.pl. Towards the end, we have a port of that script that is renders complete flame graphs pretty much identically to the original flamegraph tool, modulo some minor pixel differences and the lack of a color scheme! You can see the repository for the Rust port at https://github.com/jonhoo/inferno, where I'll add issues for all the features that are still remaining. Most of them are pretty minor, but may present interesting starting points if you want to practice your Rust! Live version with chat history here: https://youtu.be/nyXzYc9msvs

Download

1 formats

Video Formats

360pmp4641.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Porting flamegraph to Rust — part 2 | NatokHD