3 The tracking issue for this feature is: [#42524](https://github.com/rust-lang/rust/issues/42524).
5 ------------------------
7 This feature allows the generation of code coverage reports.
9 Set the `-Zprofile` compiler flag in order to enable gcov profiling.
13 cargo new testgcov --bin
15 export RUSTFLAGS="-Zprofile"
20 Once you've built and run your program, files with the `gcno` (after build) and `gcda` (after execution) extensions will be created.
21 You can parse them with [llvm-cov gcov](http://llvm.org/docs/CommandGuide/llvm-cov.html#llvm-cov-gcov) or [grcov](https://github.com/marco-c/grcov).