aboutsummaryrefslogtreecommitdiff
path: root/src/benchmark.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-08-30 14:19:32 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-08-30 14:19:32 +0200
commit5ae63c71fcbabad8ad5a3a13d7fc19493c1cc1c5 (patch)
treefb8bf312fe439bde06339c94be116269aba0e04a /src/benchmark.py
parent52c50b7299efb2050794ac589902af325156f7c3 (diff)
downloadallocbench-5ae63c71fcbabad8ad5a3a13d7fc19493c1cc1c5.tar.gz
allocbench-5ae63c71fcbabad8ad5a3a13d7fc19493c1cc1c5.zip
try to get version of benchmark requirements
Diffstat (limited to 'src/benchmark.py')
-rw-r--r--src/benchmark.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index ecac9d9..d94cc52 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -98,7 +98,8 @@ class Benchmark:
default_results = {"args": self.args,
"allocators": self.allocators,
- "facts": {"libcs": {}}}
+ "facts": {"libcs": {},
+ "versions": {}}}
default_results.update({alloc: {} for alloc in self.allocators})
if not hasattr(self, "results"):
@@ -189,6 +190,7 @@ class Benchmark:
exe = src.util.find_cmd(r)
if exe is not None:
self.results["facts"]["libcs"][r] = src.facter.libc_ver(executable=exe)
+ self.results["facts"]["versions"][r] = src.facter.exec_ver(exe)
else:
raise Exception("Requirement: {} not found".format(r))