$ cargo build --release
$ kcov --include-path=src/ /tmp/kcov target/release/rav1e $SAMPLE -s $SPEED --tiles $TILES -o /dev/null
Last active
January 30, 2020 11:21
-
-
Save lu-zero/d90849492465c8ffb0b35de2d90f141f to your computer and use it in GitHub Desktop.
profiling
$ 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