← Back to context

Comment by furyofantares

1 day ago

> Flame graph image

> Click to zoom, open in a new tab for interactivity

I admit I did not expect "Open Image in New Tab" to do what it said on the tin. I guess I was aware that it was possible with SVG but I don't think I've ever seen it done and was really not expecting it.

Courtesy of Brendan Gregg and his flamegraph.pl scripts: https://github.com/brendangregg/FlameGraph

Normally, I use the generator included in async-profiler. It produces interactive HTML. But for this post, I used Brendan’s tool specifically to have a single, interactive SVG.

  • Note that pprof produces much fancier interactive flame graphs. I'm not sure they're a single SVG though.

    Also `samply` and the Firefox profiler are pretty fancy too.

    There's really no reason to use the original flamegraph scripts.