iai_callgrind::client_requests::callgrind

Function toggle_collect

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

Toggles collection state.

The collection state specifies whether the happening of events should be noted or if they are to be ignored. Events are noted by increment of counters in a cost center

This allows to ignore events with regard to profile counters. See also valgrind command line options --collect-atstart and --toggle-collect.