gcov
gcov is a tool you can use in conjunction with GNU CC to test code coverage in your programs.
This chapter describes version 1.5 of gcov.