diff options
author | Muxi Yan <mxyan@google.com> | 2018-07-10 09:57:43 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-07-10 09:57:43 -0700 |
commit | 4df5a4d384d8833ea04c476b1b3b9e91b7d2d368 (patch) | |
tree | 5efc52f33e969afe776d9d734210bf54b1bd360e /tools/profiling | |
parent | 252359bbdca17dc4654db2f6e3e682a9864cda1a (diff) |
yapf_code
Diffstat (limited to 'tools/profiling')
-rwxr-xr-x | tools/profiling/ios_bin/binary_size.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/profiling/ios_bin/binary_size.py b/tools/profiling/ios_bin/binary_size.py index 693b3c4d2e..cde09023f2 100755 --- a/tools/profiling/ios_bin/binary_size.py +++ b/tools/profiling/ios_bin/binary_size.py @@ -113,8 +113,9 @@ for frameworks in [False, True]: text += row_format.format('New size', '', 'Old size') if old_size == None: for i in range(0, len(size_labels)): - text += ('\n' if i == len(size_labels) - 1 else '') + row_format.format( - '{:,}'.format(new_size[i]), size_labels[i], '') + text += ('\n' + if i == len(size_labels) - 1 else '') + row_format.format( + '{:,}'.format(new_size[i]), size_labels[i], '') else: has_diff = False for i in range(0, len(size_labels) - 1): @@ -125,9 +126,9 @@ for frameworks in [False, True]: else: diff_sign = ' (<)' has_diff = True - text += row_format.format( - '{:,}'.format(new_size[i]), size_labels[i] + diff_sign, - '{:,}'.format(old_size[i])) + text += row_format.format('{:,}'.format(new_size[i]), + size_labels[i] + diff_sign, '{:,}'.format( + old_size[i])) i = len(size_labels) - 1 if new_size[i] > old_size[i]: diff_sign = ' (>)' |