tool to parse unaligned output
This commit is contained in:
Родитель
e455058804
Коммит
db8a8a991a
|
@ -0,0 +1,17 @@
|
|||
import os, sys
|
||||
from subprocess import Popen, PIPE, STDOUT
|
||||
|
||||
shown = set()
|
||||
|
||||
for line in open(sys.argv[1]).readlines():
|
||||
try:
|
||||
x = line.split(' in ')[1].split(':')[0]
|
||||
#output = str([x, Popen(['c++filt', x], stdout=PIPE).communicate()])
|
||||
output = Popen(['c++filt', x], stdout=PIPE).communicate()[0]
|
||||
if output not in shown:
|
||||
shown.add(output)
|
||||
print output,
|
||||
except:
|
||||
pass
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче