如何在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)
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)
相关文章推荐
- 如何获取Android ANR log和 userspace stability issues?
- [内核]Linux UserSpace和Kernel之间如何联系
- How to modify the uboot environment from userspace
- 如何更改ORACLE中schema或user的名字
- 10. 如何在XPages里实现典型的Notes权限控制:@IsMember(@UserNamesList; FieldName)
- __user && address_space(1)
- django “如何”系列1:如何使用REMOTE_USER(远程用户)进行认证
- [Linux] Enable ssh key authentication from one user on client to multiple users on server
- 如何读取指定用户的 HKEY_CURRENT_USER 注册表键
- Win7中如何在服务中启动一个当前用户的进程——函数CreateProcessAsUser()的一次使用记录
- Ubuntu下root用户和user用户如何进行相互切换
- 如何将一个json中的json字符串转换成一个USER对象。
- 我提了愚蠢的问题: 如何在 Codebehind 中访问 WebUserControl (.ascx)?
- 如何通过代码向 User 类型的字段里面添加 多个用户
- Android 如何在自定义界面上启用输入法 (How to enable inputmethod for the custom UI)
- 如何获取.NET应用程序设置文件user.config的路径
- Controlling GPIO from Linux User Space
- 如何解决MySQL 5.7 Access denied for user 'root'@'localhost' (using password YES)问题?
- textBox的Enable属性设为false后,如何保持其字体的颜色 (Winform)
- [FAQ04776]如何默认打开user版本 debug 选项, 默认打开adb 连接【转】