From 9997da3946c749bf4561936e48730e30198f1f57 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 1 May 2019 10:53:03 +0200 Subject: [PATCH] Added memory leak debugging Signed-off-by: Jim Martens --- src/twomartens/masterthesis/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/twomartens/masterthesis/main.py b/src/twomartens/masterthesis/main.py index f0251dd..00a9cf8 100644 --- a/src/twomartens/masterthesis/main.py +++ b/src/twomartens/masterthesis/main.py @@ -247,4 +247,6 @@ def _prepare(args: argparse.Namespace) -> None: if __name__ == "__main__": + import gc + gc.set_debug(gc.DEBUG_LEAK | gc.DEBUG_STATS) main()