adapted parsing of session timing (cf. e86b10c68f0b)
authorkrauss
Fri, 01 Apr 2011 09:29:58 +0200
changeset 42186 bb688200b949
parent 42185 7101712baae8
child 42187 b4f4ed5b8586
adapted parsing of session timing (cf. e86b10c68f0b)
Admin/mira.py
--- a/Admin/mira.py	Thu Mar 31 17:15:13 2011 +0200
+++ b/Admin/mira.py	Fri Apr 01 09:29:58 2011 +0200
@@ -63,10 +63,10 @@
     def to_secs(h, m, s):
         return (int(h) * 60 + int(m)) * 60 + int(s)
     pat = r'Finished (\S+) \((\d+):(\d+):(\d+) elapsed time, (\d+):(\d+):(\d+) cpu time'
-    pat2 = r'Timing (\S+) \((\d+) threads, (\d+\.\d+)s elapsed time, (\d+\.\d+)s cpu time, (\d+\.\d+)s GC time\)'
+    pat2 = r'Timing (\S+) \((\d+) threads, (\d+\.\d+)s elapsed time, (\d+\.\d+)s cpu time, (\d+\.\d+)s GC time, factor (\d+\.\d+)\)'
     t = dict((name, {'elapsed': to_secs(eh,em,es), 'cpu': to_secs(ch,cm,cs)})
              for name, eh, em, es, ch, cm, cs in re.findall(pat, logdata))
-    for name, threads, elapsed, cpu, gc in re.findall(pat2, logdata):
+    for name, threads, elapsed, cpu, gc, factor in re.findall(pat2, logdata):
 
         if name not in t:
             t[name] = {}
@@ -75,6 +75,7 @@
         t[name]['elapsed_inner'] = elapsed
         t[name]['cpu_inner'] = cpu
         t[name]['gc'] = gc
+        t[name]['factor'] = factor
 
     return t