简体   繁体   English

Valgrind是否有像Purify / Quantify这样的API,可以禁用数据记录?

[英]Does Valgrind have an API like Purify/Quantify that lets you disable data recording?

这样的Purify / Quantify函数:quantify_stop_recording_data()

The client program can use callgrind specific client requests to control the callgrind tool (enable and disable profiling), unfortunately the memcheck client requests (for obvious reasons 1 ) don't allow the same sort of control. 客户端程序可以使用callgrind特定的客户端请求来控制callgrind工具(启用和禁用分析),遗憾的是memcheck客户端请求 (出于显而易见的原因1 )不允许相同类型的控制。

1 memory error checking is dependant on having traced the entire memory state up to the current point in time 1内存错误检查取决于跟踪整个内存状态直到当前时间点

No, it does not. 不,不是的。

Valgrind works by encapsulating the whole run of the program, it's not pluggable. Valgrind通过封装程序的整个运行来工作,它不可插拔。

It starts recording from the moment it beguns reading the program and only produce the output (for memory leaks) once the program has shut-down. 它从读取程序的那一刻开始记录,并且只在程序关闭后才产生输出(用于内存泄漏)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM