This commit is contained in:
Florian Bruhin 2014-08-27 22:23:37 +02:00
parent 3a73f9f532
commit cb2dd62dc5

View File

@ -84,12 +84,14 @@ def debug_all_objects():
s = QCoreApplication.instance().get_all_objects()
log.misc.debug(s)
@cmdutils.register(debug=True)
def debug_cache_stats():
"""Print config LRU cache stats."""
info = config.instance().get.cache_info()
log.misc.debug(info)
def log_events(klass):
"""Class decorator to log Qt events."""
old_event = klass.event