iai_callgrind::client_requests::valgrind

Function count_errors

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

Counts the number of errors that have been recorded by a tool.

Can be useful to e.g. can send output to /dev/null and still count errors.

The tool must record the errors with VG_(maybe_record_error)() or VG_(unique_error)() for them to be counted. These are to my best knowledge (as of Valgrind 3.22) Memcheck, DRD and Helgrind.