开发者

More detail about, and non-trivial output from, gcov -f

开发者 https://www.devze.com 2022-12-12 09:30 出处:网络
All the GNU gcov manual online at http://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html#Invoking-Gcov says about gcov -f option is:

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 lik开发者_开发知识库e?

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消