Skip to content

Profiling

Vincent Ollivier edited this page Jun 23, 2018 · 6 revisions

Flame graph

$ 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

Perft report

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.

Clone this wiki locally