The client program can use callgrind specific client requests to control the callgrind tool (enable and disable profiling), unfortunately memcheck client requests (for obvious reasons 1 ) do not allow using the same control.
1 memory error checking depends on the fact that it monitors the entire state of memory to the current point in time
James source
share