aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-06-03 14:03:29 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-06-03 14:03:29 +0200
commit8ec86fc9b4b538873e896d876972dbd89781bbf7 (patch)
treedddd420b306781532b46cb53ebb5e18d46e9e497
parentbd24df61258d127ab8881e9f36adf0349eb329fa (diff)
downloadallocbench-8ec86fc9b4b538873e896d876972dbd89781bbf7.tar.gz
allocbench-8ec86fc9b4b538873e896d876972dbd89781bbf7.zip
[benchmark.y] fix extraction of server VmHWM
-rw-r--r--allocbench/benchmark.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/allocbench/benchmark.py b/allocbench/benchmark.py
index f02acd2..a630cf5 100644
--- a/allocbench/benchmark.py
+++ b/allocbench/benchmark.py
@@ -132,10 +132,10 @@ class Benchmark:
for line in status_content.splitlines():
key, value = line.split(':')
- value = value.replace("kB", "")
- value = value.strip()
if key in keys:
+ value = value.replace("kB", "")
+ value = value.strip()
result[f"{key_prefix}{key}"] = value
@staticmethod
@@ -151,7 +151,10 @@ class Benchmark:
result[f"{server_name}_status"] = server_status
Benchmark.save_values_from_proc_status(
- result, keys, status_content=server_status)
+ result,
+ keys,
+ status_content=server_status,
+ key_prefix=f"{server_name}_")
@staticmethod
def parse_and_save_perf_output(result, output, alloc_name, perm):