Remove unused _get_event_counters

This has been redundant since cdb3757942.
pull/5499/head
Richard van der Hoff 2019-06-19 20:49:04 +01:00
parent 82d9d524bd
commit 68128d5626
1 changed files with 1 additions and 7 deletions

View File

@ -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)