Skip to content

Commit

Permalink
[Misc]: Push test 23
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshiotomakan committed Mar 7, 2024
1 parent 8bf7fca commit f5b1f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/release-size
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ def compare_sizes(args):
def display_target(target: str, before_kb: int, current_kb: int):
diff_kb = current_kb - before_kb
print(f'**{target}**')
print("```diff")
if before_kb == current_kb:
print(f' Size {display_size(before_kb)}')
else:
print(f'- Size {display_size(before_kb)}')
print(f'+ Size {display_size(current_kb)} \t {display_size(diff_kb)}')
print("```")

current_json = json.load(open(args.current, 'r'))
before_json = {}
Expand All @@ -51,12 +53,10 @@ def compare_sizes(args):

print("## Binary size comparison")
print()
print("```diff")
for target, current_kb in current_json.items():
before_kb = before_json.get(target, 0)
display_target(target, before_kb, current_kb)
print()
print("```")


if __name__ == '__main__':
Expand Down

0 comments on commit f5b1f6e

Please sign in to comment.