profiler: marginal improvements

pull/607/head
David Wilson 7 years ago
parent 3b585b841e
commit f4709b1dc2

@ -72,13 +72,13 @@ def try_merge(stats, path):
stats.add(path) stats.add(path)
return True return True
except Exception as e: except Exception as e:
print('Failed. Race? Will retry. %s' % (e,)) print('%s failed. Will retry. %s' % (path, e))
return False return False
def merge_stats(outpath, inpaths): def merge_stats(outpath, inpaths):
first, rest = inpaths[0], inpaths[1:] first, rest = inpaths[0], inpaths[1:]
for x in range(5): for x in range(1):
try: try:
stats = pstats.Stats(first) stats = pstats.Stats(first)
except EOFError: except EOFError:

Loading…
Cancel
Save