首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

怎么在userspace enable gcov

2012-09-05 
如何在userspace enable gcov1. Add gcc parmater -fprofile-arcs and -ftest-coverage flags and compi

如何在userspace enable gcov

1. Add gcc parmater "-fprofile-arcs and -ftest-coverage flags" and compile the program.

2. Run the  programer, will generate gcno data.

3. Use the command gcc *.c can see the coverage total data.

    Use the lcov -d -c -o test.info

4. Generate HTML

     genhtml test.info -o html_test (folder)

 

热点排行