Interface to determine, if an app is running with valgrind.
Valgrind is a unix tool to detect leaks and invalid memory access in an application.
File | common/interface/valgrind.h |
Classes |
IValgrind |
Examples |
IValgrind::RunningOnValgrind Starting an app with valgrind |
class IValgrind {
public:
static bool RunningOnValgrind();
};
if(IValgrind::RunningOnValgrind()) {
// do something differently
}
chmod +x /apps/myapp/myapp
valgrind --track-origins=yes --suppressions=/home/admin/valgrind-inno.supp --trace-children=yes --trace-children-skip=/bin/\*,/sbin/\*,/usr/\*,/etc/\* --show-leak-kinds=all --leak-check=full --xml=yes --xml-file=/home/admin/valgrind-%p.xml /apps/myapp/myapp