flamegraph-rs / flamegraph

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

Cargo build analysis #243

Open MarcAntoine-Arnaud opened 1 year ago

MarcAntoine-Arnaud commented 1 year ago

Hello,

Do you think it's possible to bench cargo build analysis ? I have try to do:

sudo flamegraph -- cargo build

but it not works yet...

djc commented 1 year ago

Why doesn't it work? What have you tried? What are you trying to learn? Are you aware of Cargo's self-profiling options?

https://blog.rust-lang.org/inside-rust/2020/02/25/intro-rustc-self-profile.html