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