Actually I know that there is Test::Valgrind::Parser::XML perl module. But I have no idea how to use it: If anyone can provide documentation it would be great.

有帮助吗?

解决方案

The valgrind docs show that valgrind accepts a --xml=yes tag to output messages as XML. The format of the XML is specified in the docs/internals/xml-output-protocol4.txt inside the source code repository.

With that, you can use any XML parser and do whatever you want with the data.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top