Covering multiple processes(Purify/Purecov)
来源:互联网 发布:lua 源码在哪里 编辑:程序博客网 时间:2024/06/05 05:58
You can cover multiple processes using fork, exec, or vfork. By default, PureCoverage does not accumulate coverage data for child processes, since a common reason for forking is to execute a new process right away. You can specify the -follow-child-processes option if you want PureCoverage to accumulate coverage data for the child process. When this option is set and the child process exits or executes another process, PureCoverage writes the accumulated counts in the child to the .pcv file. Likewise, when the parent process exits, PureCoverage writes counts accumulated for the parent to the .pcv file. By default, when this option is set, PureCoverage combines coverage data for both the parent and child in the same .pcv file. To separate the counts for parent and child, you can use the option -counts-file=%v.%p.pcv to specify a counts file including the process pid in the filename, or call the API function purecov_set_filename() in either or both the parent or child process to control where the data is written. When an instrumented program calls exec or related functions with a valid executable filename specified in the path argument, PureCoverage accumulates the coverage data in the .pcv file for the calling process before the exec is attempted. The counts are then set to zero. If the exec fails, and the calling process continues to run, the counts are correctly updated when the process finally exits or does a successful exec. If the exec is done from a child process and you have not set the -follow-child-processes option, no coverage data is accumulated, and no data is written at the time of the exec. The process invoked by exec is a new process, and does not share coverage information or status with the calling process. If the invoked process is itself a PureCoverage instrumented program, it starts accumulating coverage data regardless of whether the program calling exec was instrumented, and whether you set the -follow-child-processes option. A child process started with vfork shares a common address and accumulated coverage data with its parent. PureCoverage counting is not disabled in the child process of a vfork, even if you set the option -follow-child-processes=no.Using fork
Using exec
Using vfork
- Covering multiple processes(Purify/Purecov)
- Multiple Processes
- multithread and Multiple processes
- Covering
- Logging from multiple processes using log4net
- Processes
- Processes
- HDU6185-Covering
- Covering HDU
- Android: “Class loader may fail for processes that host multiple applications”【转】
- Purify使用指南
- MySQL之Covering Index
- 什么是“Using Covering Indexes”
- MySQL之Covering Index
- Board covering problems
- Incomplete checkerboard covering
- MySQL之Covering Index
- MySQL之Covering Index
- Tomcat线程池实现简介
- iis6.0整合tomcat6.0 win2003
- linq 随机读取数据库中的数据
- 世界十大经典电影
- 转载 天涯[经济杂谈]一位创业者的商海感悟(语录版,连载中,持续更新)【力荐】
- Covering multiple processes(Purify/Purecov)
- 被表格的间隙,表格的边框,单元格 的宽度搞的半死 的问题(图片尤为明显)
- Split区分一个或多个空格
- 关于PAZU打印控件(Web)
- table.getn(tableName) 的用法注意。
- svn备份-window
- 内存耗尽怎么办?
- No rule to make target `missing-syscalls' 一句话解决办法
- 堆和栈的区别