diff --git a/qutebrowser/utils/debug.py b/qutebrowser/utils/debug.py index adfd19b75..272a03575 100644 --- a/qutebrowser/utils/debug.py +++ b/qutebrowser/utils/debug.py @@ -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