mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-20 19:10:45 +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:
|
||||
ident = current_thread().ident
|
||||
name = "/tmp/%s.%s.%i.%d-%d" % (
|
||||
hs.hostname, func.__name__, ident, start, end
|
||||
name = "/tmp/%s.%s.%i.%d-%d.%d" % (
|
||||
hs.hostname, func.__name__, ident, start, end, end-start
|
||||
)
|
||||
# profile.dump_stats(name + ".pstat")
|
||||
html = profile.output_html()
|
||||
|
|
Loading…
Reference in a new issue