3 # Analyze the inter-packet times of requests to/from cloud storage providers.
9 def analyze_transfer(timings):
10 for (delay, bytes) in timings:
12 if delay > 2 * RTT_EST:
14 print "Long gap of", delay
15 elif delay > RTT_EST / 2:
17 print "Short gap of", delay
19 print " [occurred after", bytes, "bytes]"
21 for f in sys.argv[1:]:
22 stats = json.load(open(f))
24 if 'interpacket_times' in s:
25 analyze_transfer(s['interpacket_times'])