mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 04:03:51 +01:00
black
This commit is contained in:
parent
dc94773e60
commit
1793de6c6d
1 changed files with 2 additions and 6 deletions
|
@ -363,14 +363,10 @@ class SQLBaseStore(object):
|
||||||
duration = time_now - time_then
|
duration = time_now - time_then
|
||||||
ratio = (curr - prev) / duration
|
ratio = (curr - prev) / duration
|
||||||
|
|
||||||
top_three_counters = self._txn_perf_counters.interval(
|
top_three_counters = self._txn_perf_counters.interval(duration, limit=3)
|
||||||
duration, limit=3
|
|
||||||
)
|
|
||||||
|
|
||||||
perf_logger.info(
|
perf_logger.info(
|
||||||
"Total database time: %.3f%% {%s}",
|
"Total database time: %.3f%% {%s}", ratio * 100, top_three_counters
|
||||||
ratio * 100,
|
|
||||||
top_three_counters,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
self._clock.looping_call(loop, 10000)
|
self._clock.looping_call(loop, 10000)
|
||||||
|
|
Loading…
Reference in a new issue