summaryrefslogtreecommitdiffstats
path: root/vendor/perf-event/coverage.sh
blob: de8d660512bd992df7099103f14d2c941e9cda89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

cargo +nightly clean
export RUSTFLAGS="\
       -Zprofile \
       -Ccodegen-units=1 \
       -Copt-level=0 \
       -Clink-dead-code \
       -Coverflow-checks=off \
"
export CARGO_INCREMENTAL=0

cargo +nightly test

grcov ./target/debug/ -s . -t html --llvm --branch --ignore-not-existing -o ./target/debug/coverage/

xdg-open target/debug/coverage/index.html