-
Notifications
You must be signed in to change notification settings - Fork 1
Debugging memory leaks
Will Price edited this page May 5, 2019
·
1 revision
Valgrind can be used to debug memory leaks.
You'll need to download the Python valgrind suppressions file, read the documentation for using this, tl;dr uncomment the *Free, *Realloc suppressions in the file.
Install python3-dbg to get python3dm for which you'll need to recompile the program and any native libs with (e.g. numpy)
$ valgrind --suppressions=valgrind-python.supp python3dm -m flowty ...Or for tests
$ valgrind --suppressions=valgrind-python.supp python3dm -m pytestIf you don't use python3-dbg you'll end up with a huge number of false positives thrown by the python interpreter.