From 52b81be96e8b6194e05c23317c11a3d1a2171e6a Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 27 May 2015 15:32:12 +0100 Subject: [PATCH] Include duration in output name --- synapse/app/homeserver.py | 4 ++-- 1 file 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()