mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-12-01 12:20:02 +00:00
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:
@ -81,7 +81,7 @@ def main(**args):
|
|||||||
results = [
|
results = [
|
||||||
( result['file'],
|
( result['file'],
|
||||||
result['function'],
|
result['function'],
|
||||||
int(result['size']))
|
int(result['code_size']))
|
||||||
for result in r]
|
for result in r]
|
||||||
|
|
||||||
total = 0
|
total = 0
|
||||||
@ -95,7 +95,7 @@ def main(**args):
|
|||||||
prev_results = [
|
prev_results = [
|
||||||
( result['file'],
|
( result['file'],
|
||||||
result['function'],
|
result['function'],
|
||||||
int(result['size']))
|
int(result['code_size']))
|
||||||
for result in r]
|
for result in r]
|
||||||
|
|
||||||
prev_total = 0
|
prev_total = 0
|
||||||
@ -106,7 +106,7 @@ def main(**args):
|
|||||||
if args.get('output'):
|
if args.get('output'):
|
||||||
with open(args['output'], 'w') as f:
|
with open(args['output'], 'w') as f:
|
||||||
w = csv.writer(f)
|
w = csv.writer(f)
|
||||||
w.writerow(['file', 'function', 'size'])
|
w.writerow(['file', 'function', 'code_size'])
|
||||||
for file, func, size in sorted(results):
|
for file, func, size in sorted(results):
|
||||||
w.writerow((file, func, size))
|
w.writerow((file, func, size))
|
||||||
|
|
||||||
|
|||||||
@ -88,8 +88,8 @@ def main(**args):
|
|||||||
results = [
|
results = [
|
||||||
( result['file'],
|
( result['file'],
|
||||||
result['function'],
|
result['function'],
|
||||||
int(result['hits']),
|
int(result['coverage_hits']),
|
||||||
int(result['count']))
|
int(result['coverage_count']))
|
||||||
for result in r]
|
for result in r]
|
||||||
|
|
||||||
total_hits, total_count = 0, 0
|
total_hits, total_count = 0, 0
|
||||||
@ -104,8 +104,8 @@ def main(**args):
|
|||||||
prev_results = [
|
prev_results = [
|
||||||
( result['file'],
|
( result['file'],
|
||||||
result['function'],
|
result['function'],
|
||||||
int(result['hits']),
|
int(result['coverage_hits']),
|
||||||
int(result['count']))
|
int(result['coverage_count']))
|
||||||
for result in r]
|
for result in r]
|
||||||
|
|
||||||
prev_total_hits, prev_total_count = 0, 0
|
prev_total_hits, prev_total_count = 0, 0
|
||||||
@ -117,7 +117,7 @@ def main(**args):
|
|||||||
if args.get('output'):
|
if args.get('output'):
|
||||||
with open(args['output'], 'w') as f:
|
with open(args['output'], 'w') as f:
|
||||||
w = csv.writer(f)
|
w = csv.writer(f)
|
||||||
w.writerow(['file', 'function', 'hits', 'count'])
|
w.writerow(['file', 'function', 'coverage_hits', 'coverage_count'])
|
||||||
for file, func, hits, count in sorted(results):
|
for file, func, hits, count in sorted(results):
|
||||||
w.writerow((file, func, hits, count))
|
w.writerow((file, func, hits, count))
|
||||||
|
|
||||||
|
|||||||
@ -81,7 +81,7 @@ def main(**args):
|
|||||||
results = [
|
results = [
|
||||||
( result['file'],
|
( result['file'],
|
||||||
result['function'],
|
result['function'],
|
||||||
int(result['size']))
|
int(result['data_size']))
|
||||||
for result in r]
|
for result in r]
|
||||||
|
|
||||||
total = 0
|
total = 0
|
||||||
@ -95,7 +95,7 @@ def main(**args):
|
|||||||
prev_results = [
|
prev_results = [
|
||||||
( result['file'],
|
( result['file'],
|
||||||
result['function'],
|
result['function'],
|
||||||
int(result['size']))
|
int(result['data_size']))
|
||||||
for result in r]
|
for result in r]
|
||||||
|
|
||||||
prev_total = 0
|
prev_total = 0
|
||||||
@ -106,7 +106,7 @@ def main(**args):
|
|||||||
if args.get('output'):
|
if args.get('output'):
|
||||||
with open(args['output'], 'w') as f:
|
with open(args['output'], 'w') as f:
|
||||||
w = csv.writer(f)
|
w = csv.writer(f)
|
||||||
w.writerow(['file', 'function', 'size'])
|
w.writerow(['file', 'function', 'data_size'])
|
||||||
for file, func, size in sorted(results):
|
for file, func, size in sorted(results):
|
||||||
w.writerow((file, func, size))
|
w.writerow((file, func, size))
|
||||||
|
|
||||||
|
|||||||
@ -129,8 +129,8 @@ def main(**args):
|
|||||||
results = [
|
results = [
|
||||||
( result['file'],
|
( result['file'],
|
||||||
result['function'],
|
result['function'],
|
||||||
int(result['frame']),
|
int(result['stack_frame']),
|
||||||
float(result['limit'])) # note limit can be inf
|
float(result['stack_limit'])) # note limit can be inf
|
||||||
for result in r]
|
for result in r]
|
||||||
|
|
||||||
total_frame = 0
|
total_frame = 0
|
||||||
@ -146,8 +146,8 @@ def main(**args):
|
|||||||
prev_results = [
|
prev_results = [
|
||||||
( result['file'],
|
( result['file'],
|
||||||
result['function'],
|
result['function'],
|
||||||
int(result['frame']),
|
int(result['stack_frame']),
|
||||||
float(result['limit']))
|
float(result['stack_limit']))
|
||||||
for result in r]
|
for result in r]
|
||||||
|
|
||||||
prev_total_frame = 0
|
prev_total_frame = 0
|
||||||
@ -160,7 +160,7 @@ def main(**args):
|
|||||||
if args.get('output'):
|
if args.get('output'):
|
||||||
with open(args['output'], 'w') as f:
|
with open(args['output'], 'w') as f:
|
||||||
w = csv.writer(f)
|
w = csv.writer(f)
|
||||||
w.writerow(['file', 'function', 'frame', 'limit'])
|
w.writerow(['file', 'function', 'stack_frame', 'stack_limit'])
|
||||||
for file, func, frame, limit in sorted(results):
|
for file, func, frame, limit in sorted(results):
|
||||||
w.writerow((file, func, frame, limit))
|
w.writerow((file, func, frame, limit))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user