flamegraph-rs / flamegraph

Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3
Apache License 2.0
4.61k stars 141 forks source link

Very long analysis due to slow addr2line calls #294

Closed Mingun closed 10 months ago

Mingun commented 10 months ago

I try to use flamegraph to profile quick-xml benchmarks. I've run the following command in the quick-xml checkout:

cargo flamegraph --bench macrobenches -- --bench

perf collected over 8GB of raw data and analysis going more than a hour already. flamegraph runs perf script which runs addr2line many times, about 2-3 invocations per second. It seems to me that such a simple task consumes absurd time to complete. Probably it is better to find more performant solutions to process perf data.

djc commented 10 months ago

Maybe have a look at #74 and #199? I think there was an issue with some versions of the addr2line script. You may also want to try samply as a flamegraph alternative.

Mingun commented 10 months ago

Ah, ok, yes, this indeed a duplicate of those issues -- I'm on Ubuntu 22.04 with kernel 5.15 where perf performance is not fixed yet.