mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Log database time every 10s and log as percentage
This commit is contained in:
parent
75656712e3
commit
66fde49f07
@ -103,9 +103,9 @@ class SQLBaseStore(object):
|
||||
|
||||
ratio = (curr - prev)/(time_now - time_then)
|
||||
|
||||
logger.info("Total database time: %.3f", ratio)
|
||||
logger.info("Total database time: %.3f%", ratio * 100)
|
||||
|
||||
self._clock.looping_call(loop, 1000)
|
||||
self._clock.looping_call(loop, 10000)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def runInteraction(self, desc, func, *args, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user