rust/src/doc/unstable-book/src
whitequark 42754ce710 Add profiling support, through the rustc -Z profile flag.
When -Z profile is passed, the GCDAProfiling LLVM pass is added
to the pipeline, which uses debug information to instrument the IR.
After compiling with -Z profile, the $(OUT_DIR)/$(CRATE_NAME).gcno
file is created, containing initial profiling information.
After running the program built, the $(OUT_DIR)/$(CRATE_NAME).gcda
file is created, containing branch counters.

The created *.gcno and *.gcda files can be processed using
the "llvm-cov gcov" and "lcov" tools. The profiling data LLVM
generates does not faithfully follow the GCC's format for *.gcno
and *.gcda files, and so it will probably not work with other tools
(such as gcov itself) that consume these files.
2017-05-01 09:16:20 +00:00
..
compiler-flags Add profiling support, through the rustc -Z profile flag. 2017-05-01 09:16:20 +00:00
language-features Add profiling support, through the rustc -Z profile flag. 2017-05-01 09:16:20 +00:00
library-features Add profiling support, through the rustc -Z profile flag. 2017-05-01 09:16:20 +00:00
SUMMARY.md Add profiling support, through the rustc -Z profile flag. 2017-05-01 09:16:20 +00:00
compiler-flags.md Add top level sections to the Unstable Book. 2017-04-18 21:26:09 -04:00
language-features.md Add top level sections to the Unstable Book. 2017-04-18 21:26:09 -04:00
library-features.md Add top level sections to the Unstable Book. 2017-04-18 21:26:09 -04:00
the-unstable-book.md Add top level sections to the Unstable Book. 2017-04-18 21:26:09 -04:00