Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Unified Diff: tools/binary_size/linker_map_parser.py

Issue 2775173005: FREEZE.unindexed (Closed)
Patch Set: ps2 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/binary_size/integration_test.py ('k') | tools/binary_size/map2size.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/binary_size/linker_map_parser.py
diff --git a/tools/binary_size/linker_map_parser.py b/tools/binary_size/linker_map_parser.py
index ffb3803709a4e9f64087efff6d4ec5cc22169f7f..b28abd8beb459aae560d31b132b4d295df2b259e 100644
--- a/tools/binary_size/linker_map_parser.py
+++ b/tools/binary_size/linker_map_parser.py
@@ -67,7 +67,8 @@ class MapFileParser(object):
break
name, size_str, path = parts
self._symbols.append(
- models.Symbol('.bss', int(size_str[2:], 16), name=name, path=path))
+ models.Symbol('.bss', int(size_str[2:], 16), name=name,
+ object_path=path))
def _ParseSections(self):
# .text 0x0028c600 0x22d3468
@@ -141,7 +142,7 @@ class MapFileParser(object):
path = None
syms.append(
models.Symbol(section_name, size, address=address, name=name,
- path=path))
+ object_path=path))
else:
# A normal symbol entry.
subsection_name, address_str, size_str, path = (
@@ -189,7 +190,8 @@ class MapFileParser(object):
sym = models.Symbol(
section_name, merge_size,
address=merge_symbol_start_address,
- name='** symbol gap %d' % symbol_gap_count, path=path)
+ name='** symbol gap %d' % symbol_gap_count,
+ object_path=path)
symbol_gap_count += 1
syms.append(sym)
merge_symbol_start_address = 0
@@ -200,7 +202,8 @@ class MapFileParser(object):
if address == -1:
address = syms[-1].end_address
syms.append(models.Symbol(section_name, size, address=address,
- name=name or mangled_name, path=path))
+ name=name or mangled_name,
+ object_path=path))
logging.debug('Symbol count for %s: %d', section_name,
len(syms) - sym_count_at_start)
except:
« no previous file with comments | « tools/binary_size/integration_test.py ('k') | tools/binary_size/map2size.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698