aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkbbrodz <konrad.b.brodzik@intel.com>2016-05-13 15:42:38 +0200
committerkbbrodz <konrad.b.brodzik@intel.com>2016-06-02 11:45:55 +0200
commit5d2dac75c61714cdce7502bd8a4ee29459d6a382 (patch)
tree067961fc102671caa5f4fe49a283ce0478b676d0
parent438596f8942f13e5c5c429b9ae38878e87a3e6ca (diff)
Update plotter.py to new yardstick.out format
JIRA: YARDSTICK-176 Change-Id: I16ae136700334e95a1edcda6a46208ca21c19951 Signed-off-by: kbbrodz <konrad.b.brodzik@intel.com>
-rw-r--r--yardstick/plot/plotter.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/yardstick/plot/plotter.py b/yardstick/plot/plotter.py
index 91dd521f7..4cbbdfe74 100644
--- a/yardstick/plot/plotter.py
+++ b/yardstick/plot/plotter.py
@@ -36,6 +36,7 @@ class Parser(object):
'fio': []
}
self.default_input_loc = "/tmp/yardstick.out"
+ self.scenarios = {}
def _get_parser(self):
'''get a command-line parser'''
@@ -59,7 +60,11 @@ class Parser(object):
def _add_record(self, record):
'''add record to the relevant scenario'''
- runner_object = record['sargs']['runner']['object']
+ if "runner_id" in record and "benchmark" not in record:
+ obj_name = record["scenario_cfg"]["runner"]["object"]
+ self.scenarios[record["runner_id"]] = obj_name
+ return
+ runner_object = self.scenarios[record["runner_id"]]
for test_type in self.data.keys():
if test_type in runner_object:
self.data[test_type].append(record)