More cloud storage performance-measurement scripts.
[bluesky.git] / parsetrace / delay-graph.py
diff --git a/parsetrace/delay-graph.py b/parsetrace/delay-graph.py
new file mode 100755 (executable)
index 0000000..8030397
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+
+import json, sys
+
+times = []
+
+for f in sys.argv[1:]:
+    stats = json.load(open(f))
+    for s in stats:
+        if 'interpacket_times' in s:
+            times += [x[0] for x in s['interpacket_times']]
+
+for t in times:
+    print "%f" % (t,)