summaryrefslogtreecommitdiff
path: root/bin/analyze-log.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/analyze-log.py')
-rwxr-xr-xbin/analyze-log.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/analyze-log.py b/bin/analyze-log.py
index 948d4d2..c64839c 100755
--- a/bin/analyze-log.py
+++ b/bin/analyze-log.py
@@ -33,15 +33,16 @@ def parse_logfile(filename):
with open(filename, "r") as f:
for line in f:
- m = re.search(r"\[::\] ([^|]*) [|] (.*)", line)
+ m = re.search(r"\[::\] *([^|]*?) *[|] *([^|]*?) *[|] *(.*)", line)
if m:
- param_str = m.group(1)
- attr_str = m.group(2)
+ name_str = m.group(1)
+ param_str = m.group(2)
+ attr_str = m.group(3)
param = dict(map(kv_to_param_i, param_str.split(" ")))
attr = dict(map(kv_to_param_f, attr_str.split(" ")))
observations.append(
{
- "name": "Benchmark",
+ "name": name_str,
"param": param,
"attribute": attr,
}