GCOV - GCC代碼覆蓋率工具

編譯時添加選項: gcc -fprofile-arcs -ftest-coverage -o test test.cide

運行獲得覆蓋率結果:./testspa

產生分析報告:gcov test.cit

 =>編譯

File 'test.c'class

Lines executed:??% (行覆蓋率) of ?? (總行數)test

相關文章
相關標籤/搜索