gcov
gcov is a test coverage tool that ships with the GNU Compiler Collection (GCC). It analyzes how much of a C or C++ program’s source code is exercised by a set of tests, helping developers identify untested or under-tested code paths. gcov works by using instrumentation added by the compiler during compilation and by processing profiling data collected at run time.
When a program is compiled with coverage instrumentation, GCC generates additional data files during execution. Compiling
Usage generally follows a pattern: compile with coverage flags, run the program to generate profiling data,
gcov is part of GCC and is commonly used in conjunction with other coverage tooling to aggregate