Include duration in output name

This commit is contained in:
Erik Johnston 2015-05-27 15:32:12 +01:00
parent 2b0eb839db
commit 52b81be96e

View file

@ -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()