GCOV - C/C++ Code coverage testing tool

What is GCOV

  • GCC provides GCOV, code coverage testing tool for C/C++ programs.
  • GCOV identifies the lines of code that got executed while running the program.
  • It also gives additional information like how many times particular line got executed.
  • Also provides information about how many possible branches are there in the code and which branch path got executed more.

Use cases

Optimization

GCOV identifies the sections in the code that are heavy executed, using which we'll be able to focus on optimizing the parts of the code which are executed often.

Identifying dead code

Any code that got ...

View comments.

more ...