aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/profiling
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-07-10 09:57:43 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-07-10 09:57:43 -0700
commit4df5a4d384d8833ea04c476b1b3b9e91b7d2d368 (patch)
tree5efc52f33e969afe776d9d734210bf54b1bd360e /tools/profiling
parent252359bbdca17dc4654db2f6e3e682a9864cda1a (diff)
yapf_code
Diffstat (limited to 'tools/profiling')
-rwxr-xr-xtools/profiling/ios_bin/binary_size.py11
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 = ' (>)'