Log database time every 10s and log as percentage
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