iai_callgrind::client_requests::memcheck

Function count_leaks

source
pub fn count_leaks() -> LeakCounts
Available on crate feature client_requests_defs only.
Expand description

Return LeakCounts found by all previous leak checks

This client request fills in the four fields of LeakCounts with the number of bytes of memory found by the previous leak check to be leaked (i.e. the sum of direct leaks and indirect leaks), dubious, reachable and suppressed.

This is useful in test harness code, after calling do_leak_check or do_quick_leak_check