Skip to content

Profiling

Vincent Ollivier edited this page Nov 1, 2017 · 6 revisions

Flame graph

$ cargo test --no-run
$ perf record -g ./target/debug/littlewing
$ perf script | stackcollapse-perf | rust-unmangle | flamegraph > flame.svg

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 perft report to see the annotated source.

Clone this wiki locally