Skip to content

Instantly share code, notes, and snippets.

@lu-zero
Last active January 30, 2020 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lu-zero/d90849492465c8ffb0b35de2d90f141f to your computer and use it in GitHub Desktop.
Save lu-zero/d90849492465c8ffb0b35de2d90f141f to your computer and use it in GitHub Desktop.
profiling
$ cargo build --release
$ kcov --include-path=src/ /tmp/kcov target/release/rav1e $SAMPLE -s $SPEED --tiles $TILES -o /dev/null
$ export PROJECT=rav1e
$ export RUSTFLAGS="-C target-cpu=native \
-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 \
-Clink-dead-code -Coverflow-checks=off -Zno-landing-pads"
$ export CARGO_INCREMENTAL=0
$ cargo +nightly run --release -- $SAMPLE -s $SPEED --tiles $TILES -o /dev/null
$ gcovr -r . --gcov-executable "llvm-cov gcov" --filter src/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment