[−][src]Function cargo_valgrind::valgrind
pub fn valgrind<P: AsRef<Path>>(path: P) -> Result<Vec<Leak>, Error>
Run the program denoted by path
in valgrind.
This function runs the program in valgrind, parses its XML output, collects the leak information and returns the list of leaks. If this list is empty, the program has no detected leaks.
Errors
This function returns an error, if valgrind could not be executed successfully, its output could not be parsed correctly or any other process related error occurs.