Changed script's CSV formats to allow for merging different measurements

- size  -> code_size
- size  -> data_size
- frame -> stack_frame
- limit -> stack_limit
- hits  -> coverage_hits
- count -> coverage_count
This commit is contained in:
Christopher Haster
2022-02-20 11:09:05 -06:00
parent f4c7af76f8
commit d7582efec8
4 changed files with 16 additions and 16 deletions

View File

@@ -81,7 +81,7 @@ def main(**args):
results = [
( result['file'],
result['function'],
int(result['size']))
int(result['code_size']))
for result in r]
total = 0
@@ -95,7 +95,7 @@ def main(**args):
prev_results = [
( result['file'],
result['function'],
int(result['size']))
int(result['code_size']))
for result in r]
prev_total = 0
@@ -106,7 +106,7 @@ def main(**args):
if args.get('output'):
with open(args['output'], 'w') as f:
w = csv.writer(f)
w.writerow(['file', 'function', 'size'])
w.writerow(['file', 'function', 'code_size'])
for file, func, size in sorted(results):
w.writerow((file, func, size))