Does Valgrind have an API like Purify/Quantify that lets you disable data recording?
Something like this Purify开发者_开发知识库/Quantify function: 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 reasons1) don't allow the same sort of control.
1 memory error checking is dependant on having traced the entire memory state up to the current point in time
No, it does not.
Valgrind works by encapsulating the whole run of the program, it's not pluggable.
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.
精彩评论