1
0

Add a GC debugger

Add commented-out GC debugging step
This commit is contained in:
Neil Booth
2015-11-13 23:11:43 +09:00
parent 50755d7db3
commit 53f6fb9876
2 changed files with 34 additions and 1 deletions

View File

@@ -34,6 +34,10 @@ from electrum.plugins import run_hook
from electrum import SimpleConfig, Wallet, WalletStorage
from electrum.paymentrequest import InvoiceStore
from electrum.contacts import Contacts
from electrum.synchronizer import Synchronizer
from electrum.verifier import SPV
from electrum.util import DebugMem
from electrum.wallet import Abstract_Wallet
from installwizard import InstallWizard
@@ -64,6 +68,10 @@ class ElectrumGui:
def __init__(self, config, network, plugins):
set_language(config.get('language'))
# Uncomment this call to verify objects are being properly
# GC-ed when windows are closed
#network.add_jobs([DebugMem([Abstract_Wallet, SPV, Synchronizer,
# ElectrumWindow], interval=5)])
self.network = network
self.config = config
self.plugins = plugins