| Index: tools/binary_size/libsupersize/file_format.py
|
| diff --git a/tools/binary_size/libsupersize/file_format.py b/tools/binary_size/libsupersize/file_format.py
|
| index e58494daacc7e557bc587308824dce87fa82fcf5..63c44b604b223a6d19a4f79a859dfa29d8f01bce 100644
|
| --- a/tools/binary_size/libsupersize/file_format.py
|
| +++ b/tools/binary_size/libsupersize/file_format.py
|
| @@ -53,8 +53,8 @@ def _SaveSizeInfoToFile(size_info, file_obj):
|
| _LogSize(file_obj, 'paths') # For libchrome, adds 200kb.
|
|
|
| # Symbol counts by section.
|
| - by_section = models.SymbolGroup(size_info.symbols)
|
| - by_section = by_section.GroupBySectionName().SortedByName()
|
| + by_section = size_info.symbols.GroupBySectionName().Sorted(
|
| + key=lambda s:(s[0].IsBss(), s[0].address, s.name))
|
| file_obj.write('%s\n' % '\t'.join(g.name for g in by_section))
|
| file_obj.write('%s\n' % '\t'.join(str(len(g)) for g in by_section))
|
|
|
|
|