-
Notifications
You must be signed in to change notification settings - Fork 2
Profiling
Vincent Ollivier edited this page Jun 23, 2018
·
6 revisions
$ cargo test --no-run
$ perf record -g ./target/debug/littlewing
$ perf script | stackcollapse-perf | rust-unmangle | flamegraph > flame.svg
See https://gist.github.com/KodrAus/97c92c07a90b1fdd6853654357fd557a
Add the following to Cargo.toml
:
[profile.release]
debug = true
Then:
$ cargo build --release
$ perf record -g ./target/release/littlewing
$ perf report
Use a
in perf report
to see the annotated source.