Skip to content
Snippets Groups Projects
Commit e0fb86a7 authored by Henrik Tjäder's avatar Henrik Tjäder
Browse files

Nicely print Claims and Total time

parent a8524aee
No related branches found
No related tags found
No related merge requests found
......@@ -178,10 +178,23 @@ def stop_event(evt):
if file_index_current < len(file_list) - 1:
gather_data()
else:
offset = 1
print("\nFinished all ktest files!\n")
print("Claims:")
for x in outputdata:
print("%s" % x)
for index, obj in enumerate(outputdata):
if obj[4] == 'Exit':
claim_time = (obj[2] -
outputdata[index - (offset)][2])
# print("Claim time: %s" % claim_time)
print("%s Claim time: %s" % (obj, claim_time))
offset += 2
elif obj[4] == 'Finish' and not obj[2] == 0:
offset = 1
tot_time = obj[2]
print("%s Total time: %s" % (obj, tot_time))
else:
print("%s" % (obj))
gdb.execute("quit")
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment