summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-27 15:32:12 +0100
committerErik Johnston <erik@matrix.org>2015-05-27 15:32:12 +0100
commit52b81be96e8b6194e05c23317c11a3d1a2171e6a (patch)
tree96fcec1da7d00db42069abc2146bae97ea0d29cb
parentUse pyinstrument (diff)
downloadsynapse-52b81be96e8b6194e05c23317c11a3d1a2171e6a.tar.xz
Include duration in output name
-rwxr-xr-xsynapse/app/homeserver.py4
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()