mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-10-23 01:19:12 +08: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 = [
|
||||
( 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))
|
||||
|
||||
|
Reference in New Issue
Block a user