Suggest 'profile' flag

This commit is contained in:
Marco Castelluccio 2017-06-06 11:10:34 +01:00
parent 13b3c34e4b
commit 95c6fc4944
1 changed files with 2 additions and 2 deletions

View File

@ -6,13 +6,13 @@ The tracking issue for this feature is: None
This feature allows the generation of code coverage reports.
Set the compiler flags `-Ccodegen-units=1 -Clink-dead-code -Cpasses=insert-gcov-profiling -Zno-landing-pads` to enable gcov profiling.
Set the `-Zprofile` compiler flag in order to enable gcov profiling.
For example:
```Bash
cargo new testgcov --bin
cd testgcov
export RUSTFLAGS="-Ccodegen-units=1 -Clink-dead-code -Cpasses=insert-gcov-profiling -Zno-landing-pads"
export RUSTFLAGS="-Zprofile"
cargo build
cargo run
```