summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-06-19 20:49:04 +0100
committerRichard van der Hoff <richard@matrix.org>2019-06-19 21:14:25 +0100
commit68128d56269e51021797a979306a08ca4018b207 (patch)
tree7960838e11ec25040766f67a238fb2ce5bc911da /synapse/storage
parentFix seven contrib files with Python syntax errors (#5446) (diff)
downloadsynapse-68128d56269e51021797a979306a08ca4018b207.tar.xz
Remove unused _get_event_counters
This has been redundant since cdb3757942fefdcdc3d33b9c6d7c9e44decefd6f.
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/_base.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 941c07fce5..75cffb8429 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -213,7 +213,6 @@ class SQLBaseStore(object):
         #   is running in mainline, and we have some nice monitoring frontends
         #   to watch it
         self._txn_perf_counters = PerformanceCounters()
-        self._get_event_counters = PerformanceCounters()
 
         self._get_event_cache = Cache(
             "*getEvent*", keylen=3, max_entries=hs.config.event_cache_size
@@ -369,15 +368,10 @@ class SQLBaseStore(object):
                 time_now - time_then, limit=3
             )
 
-            top_3_event_counters = self._get_event_counters.interval(
-                time_now - time_then, limit=3
-            )
-
             perf_logger.info(
-                "Total database time: %.3f%% {%s} {%s}",
+                "Total database time: %.3f%% {%s}",
                 ratio * 100,
                 top_three_counters,
-                top_3_event_counters,
             )
 
         self._clock.looping_call(loop, 10000)