您的位置:首页 > 其它

如何在userspace enable gcov

2012-08-02 16:34 337 查看
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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: