'fio': []
}
self.default_input_loc = "/tmp/yardstick.out"
+ self.scenarios = {}
def _get_parser(self):
'''get a command-line parser'''
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)
def _plot_ping(self, records):
'''ping test result interpretation and visualization on the graph'''
- rtts = [r['benchmark']['data'] for r in records]
+ rtts = [r['benchmark']['data']['rtt'] for r in records]
seqs = [r['benchmark']['sequence'] for r in records]
for i in range(0, len(rtts)):