mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 01:21:09 +03:00
Include duration in output name
This commit is contained in:
parent
2b0eb839db
commit
52b81be96e
1 changed files with 2 additions and 2 deletions
|
@ -536,8 +536,8 @@ def run(hs):
|
||||||
|
|
||||||
if end - start > 10:
|
if end - start > 10:
|
||||||
ident = current_thread().ident
|
ident = current_thread().ident
|
||||||
name = "/tmp/%s.%s.%i.%d-%d" % (
|
name = "/tmp/%s.%s.%i.%d-%d.%d" % (
|
||||||
hs.hostname, func.__name__, ident, start, end
|
hs.hostname, func.__name__, ident, start, end, end-start
|
||||||
)
|
)
|
||||||
# profile.dump_stats(name + ".pstat")
|
# profile.dump_stats(name + ".pstat")
|
||||||
html = profile.output_html()
|
html = profile.output_html()
|
||||||
|
|
Loading…
Reference in a new issue