mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-27 20:52:30 +00:00
Remove unused _get_event_counters
This has been redundant since cdb3757942
.
This commit is contained in:
parent
82d9d524bd
commit
68128d5626
@ -213,7 +213,6 @@ class SQLBaseStore(object):
|
|||||||
# is running in mainline, and we have some nice monitoring frontends
|
# is running in mainline, and we have some nice monitoring frontends
|
||||||
# to watch it
|
# to watch it
|
||||||
self._txn_perf_counters = PerformanceCounters()
|
self._txn_perf_counters = PerformanceCounters()
|
||||||
self._get_event_counters = PerformanceCounters()
|
|
||||||
|
|
||||||
self._get_event_cache = Cache(
|
self._get_event_cache = Cache(
|
||||||
"*getEvent*", keylen=3, max_entries=hs.config.event_cache_size
|
"*getEvent*", keylen=3, max_entries=hs.config.event_cache_size
|
||||||
@ -369,15 +368,10 @@ class SQLBaseStore(object):
|
|||||||
time_now - time_then, limit=3
|
time_now - time_then, limit=3
|
||||||
)
|
)
|
||||||
|
|
||||||
top_3_event_counters = self._get_event_counters.interval(
|
|
||||||
time_now - time_then, limit=3
|
|
||||||
)
|
|
||||||
|
|
||||||
perf_logger.info(
|
perf_logger.info(
|
||||||
"Total database time: %.3f%% {%s} {%s}",
|
"Total database time: %.3f%% {%s}",
|
||||||
ratio * 100,
|
ratio * 100,
|
||||||
top_three_counters,
|
top_three_counters,
|
||||||
top_3_event_counters,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
self._clock.looping_call(loop, 10000)
|
self._clock.looping_call(loop, 10000)
|
||||||
|
Loading…
Reference in New Issue
Block a user