From fb7a2db9f874db1e01073433729aaa1cb46d848d Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 23 Aug 2022 00:10:30 +0100 Subject: [PATCH] GC stats and leak detection --- bridge_master.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bridge_master.py b/bridge_master.py index ff41df7..4fb3f6b 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -82,6 +82,11 @@ from binascii import b2a_hex as ahex from AMI import AMI +#debugging and profiling +import gc + +gc.set_debug(gc.DEBUG_STATS) +gc.set_debug(gc.DEBUG_LEAK) ##from hmac import new as hmac_new, compare_digest ##from hashlib import sha256, hash