gcov
Code coverage analysis and profiling tool that discovers untested parts of a program. Also displays a copy of source code annotated with execution frequencies of code segments. More information: https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html.
- Generate a coverage report named
file.cpp.gcov:
gcov
- Write individual execution counts for every basic block:
gcov
- Write branch frequencies to the output file and print summary information to
stdoutas a percentage:
gcov
- Write branch frequencies as the number of branches taken, rather than the percentage:
gcov
- Do not create a
gcovoutput file:
gcov
- Write file level as well as function level summaries:
gcov
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
