Add fio cpu data to result json file

Change-Id: I2abeb7007c138d384c9c9393aef06dee820ccb59
This commit is contained in:
mortenhillbom 2018-03-16 14:37:18 -07:00
parent 51962aa0f1
commit 41bbf14620
1 changed files with 8 additions and 0 deletions

View File

@ -55,6 +55,8 @@ class FioTool(PerfTool):
assign_dict(parsed_output, 'write_KB', job['write']['io_bytes'])
assign_dict(parsed_output, 'write_hist', job['write']['clat']['hist'], 'write_bw')
assign_dict(parsed_output, 'cpu', {'usr': job['usr_cpu'], 'sys': job['sys_cpu']})
except Exception:
return self.parse_error('Could not parse: "%s"' % (stdout))
return parsed_output
@ -76,6 +78,12 @@ class FioTool(PerfTool):
all_res[key] = int(total)
all_res['tool'] = results[0]['results']['tool']
all_cpus = []
for item in results:
all_cpus.append(item['results'].get('cpu', None))
if all_cpus:
all_res['cpu'] = all_cpus
clat_list = []
# perc_list = [1, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 99, 99.5, 99.9, 99.95, 99.99]
perc_list = [50, 75, 90, 99, 99.9, 99.99, 99.999]