1

All the GNU gcov manual online at http://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html#Invoking-Gcov says about gcov -f option is:

-f --function-summaries Output summaries for each function in addition to the file level summary.

Does anyone have more information, and maybe a non-trivial .gcov output file, from using this option, in order to demonstrate exactly what these "summaries for each function" look like?

I will also try to try it out, but I thought if someone is regularly using this option they could tell me more.

4

1 回答 1

2

I don't think it puts different data in the .gcov file, just in the output of gcov itself. gcov -f prints the name of each function called, its % of lines executed, and number of lines in the function. gcov without -f just shows a summary for the whole file.

于 2009-11-18T19:37:14.880 回答