diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-27 15:32:12 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-27 15:32:12 +0100 |
commit | 52b81be96e8b6194e05c23317c11a3d1a2171e6a (patch) | |
tree | 96fcec1da7d00db42069abc2146bae97ea0d29cb | |
parent | Use pyinstrument (diff) | |
download | synapse-52b81be96e8b6194e05c23317c11a3d1a2171e6a.tar.xz |
Include duration in output name
-rwxr-xr-x | synapse/app/homeserver.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index a5c96c86f9..030e344c51 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -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() |