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.
file.cpp.gcov:gcov {{path/to/file.cpp}}
gcov {{[-a|--all-blocks]}} {{path/to/file.cpp}}
stdout as a percentage:gcov {{[-b|--branch-probabilities]}} {{path/to/file.cpp}}
gcov {{[-c|--branch-counts]}} {{path/to/file.cpp}}
gcov output file:gcov {{[-n|--no-output]}} {{path/to/file.cpp}}
gcov {{[-f|--function-summaries]}} {{path/to/file.cpp}}