Suggest 'profile' flag

This commit is contained in:
Marco Castelluccio 2017-06-06 11:10:34 +01:00
parent 13b3c34e4b
commit 95c6fc4944

View File

@ -6,13 +6,13 @@ The tracking issue for this feature is: None
This feature allows the generation of code coverage reports. 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: For example:
```Bash ```Bash
cargo new testgcov --bin cargo new testgcov --bin
cd testgcov cd testgcov
export RUSTFLAGS="-Ccodegen-units=1 -Clink-dead-code -Cpasses=insert-gcov-profiling -Zno-landing-pads" export RUSTFLAGS="-Zprofile"
cargo build cargo build
cargo run cargo run
``` ```