iai_callgrind::client_requests::callgrind

Function stop_instrumentation

source
pub fn stop_instrumentation()
Available on crate feature client_requests_defs only.
Expand description

Stop full callgrind instrumentation if not already switched off

This flushes Valgrind’s translation cache, and does no additional instrumentation afterward, which effectively will run at the same speed as the “none” tool (i.e. at minimal slowdown). Use this to bypass Callgrind aggregation for uninteresting code parts. To start Callgrind in this mode to ignore the setup phase, use the valgrind command line option --instr-atstart=no.