mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-06 16:06:52 +00:00
Merge branch 'erikj/reactor_metrics' into erikj/dictionary_cache
This commit is contained in:
commit
8b7ce2945b
1 changed files with 1 additions and 1 deletions
|
@ -158,8 +158,8 @@ def runUntilCurrentTimer(func):
|
||||||
|
|
||||||
@functools.wraps(func)
|
@functools.wraps(func)
|
||||||
def f(*args, **kwargs):
|
def f(*args, **kwargs):
|
||||||
start = time.time() * 1000
|
|
||||||
pending_calls = len(reactor.getDelayedCalls())
|
pending_calls = len(reactor.getDelayedCalls())
|
||||||
|
start = time.time() * 1000
|
||||||
ret = func(*args, **kwargs)
|
ret = func(*args, **kwargs)
|
||||||
end = time.time() * 1000
|
end = time.time() * 1000
|
||||||
tick_time.inc_by(end - start)
|
tick_time.inc_by(end - start)
|
||||||
|
|
Loading…
Add table
Reference in a new issue