projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92c691f
)
Add another hack script.
author
Carl Hetherington
<cth@carlh.net>
Wed, 29 Jun 2016 15:09:02 +0000
(16:09 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 29 Jun 2016 15:09:02 +0000
(16:09 +0100)
hacks/testtimings
[new file with mode: 0644]
patch
|
blob
diff --git a/hacks/testtimings
b/hacks/testtimings
new file mode 100644
(file)
index 0000000..
f4e8084
--- /dev/null
+++ b/
hacks/testtimings
@@ -0,0
+1,22
@@
+#!/usr/bin/python
+
+import sys
+
+if len(sys.argv) < 2:
+ print>>sys.stderr,'Syntax %s <log>' % sys.argv[0]
+ sys.exit(1)
+
+tests = {}
+
+with open(sys.argv[1]) as f:
+ while True:
+ l = f.readline()
+ if l == '':
+ break
+
+ s = l.split()
+ if len(s) == 7 and s[6][-3:] == 'mks':
+ tests[float(s[6][:-3]) / 1000000] = s[3][1:-2]
+
+for x in sorted(tests):
+ print x,tests[x]