2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-08-22 03:00:29 +00:00

Fix hangtraces analyzer

With threadid, the analyzer was failing to collapse identical threads.
This commit is contained in:
Jarrod Johnson
2018-02-27 11:28:37 -05:00
parent 74e34f874c
commit 7736056bf2

View File

@@ -27,7 +27,7 @@ with open(sys.argv[1]) as tracefile:
if currtrace not in threadtraces:
threadtraces[currtrace] = 0
threadtraces[currtrace] += 1
currtrace = line
currtrace = ''
elif currtrace is not None:
currtrace += line + '\n'
for trace in sorted(threadtraces, key=lambda x: threadtraces[x]):