[or-cvs] r19753: {torflow} Add a couple calls to enable garbage collection debugging in (torflow/trunk/NetworkScanners/BwAuthority)
mikeperry at seul.org
mikeperry at seul.org
Sun Jun 21 03:16:42 UTC 2009
Author: mikeperry
Date: 2009-06-20 23:16:42 -0400 (Sat, 20 Jun 2009)
New Revision: 19753
Modified:
torflow/trunk/NetworkScanners/BwAuthority/bwauthority.py
Log:
Add a couple calls to enable garbage collection debugging
infos.
Modified: torflow/trunk/NetworkScanners/BwAuthority/bwauthority.py
===================================================================
--- torflow/trunk/NetworkScanners/BwAuthority/bwauthority.py 2009-06-21 02:49:56 UTC (rev 19752)
+++ torflow/trunk/NetworkScanners/BwAuthority/bwauthority.py 2009-06-21 03:16:42 UTC (rev 19753)
@@ -26,7 +26,10 @@
from TorCtl.TorUtil import plog
-
+# XXX: Temporary for debugging memory leak
+import gc
+gc.set_debug(gc.DEBUG_COLLECTABLE|gc.DEBUG_UNCOLLECTABLE|gc.DEBUG_INSTANCES|gc.DEBUG_OBJECTS)
+
from TorCtl import PathSupport,SQLSupport,TorCtl,TorUtil
sys.path.append("../libs")
@@ -440,6 +443,9 @@
max_fetch_time, sleep_start, sleep_stop, slice_num,
min_streams, sql_file)
+ # XXX: Temporary for debugging memory leak..
+ TorUtil.dump_class_ref_counts()
+
# TODO: Change pathlen to 3 and kill exit+ConserveExit restrictions
# And record circ failure rates..
More information about the tor-commits
mailing list