mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 18:30:24 +00:00
Use pyinstrument
This commit is contained in:
parent
52b81be96e
commit
b037fe7485
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,7 @@ def run(hs):
|
||||||
|
|
||||||
end = int(time.time()*1000)
|
end = int(time.time()*1000)
|
||||||
|
|
||||||
if end - start > 10:
|
if end - start > 100:
|
||||||
ident = current_thread().ident
|
ident = current_thread().ident
|
||||||
name = "/tmp/%s.%s.%i.%d-%d.%d" % (
|
name = "/tmp/%s.%s.%i.%d-%d.%d" % (
|
||||||
hs.hostname, func.__name__, ident, start, end, end-start
|
hs.hostname, func.__name__, ident, start, end, end-start
|
||||||
|
|
Loading…
Reference in a new issue