8 stats = json.load(open(f))
9 for n in range(len(stats)):
11 name = "%s-%d" % (f, n)
15 if 'interpacket_times' in s:
16 for x in s['interpacket_times']:
18 if 'LAST_PACKET_SHORT' in flags and '9000' in flags:
21 event_locs.append(x[1])
22 total_time = s['finish_latency'] * 1e-6
23 if event_count > 0 or True:
24 #print "%s: %d %s" % (name, event_count, event_locs)
25 print "%d\t%s\t%s\t%f" % (event_count, delay_total, event_count and delay_total / event_count or 0.0, total_time)
28 print "%f\t%s\t%s" % (t[0], t[1], ','.join(t[2]))