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

Unified Diff: tools/binary_size/create_html_breakdown.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/console.py ('k') | tools/binary_size/describe.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/binary_size/create_html_breakdown.py
diff --git a/tools/binary_size/create_html_breakdown.py b/tools/binary_size/create_html_breakdown.py
index 7b45ae7ad42ff6d26879217f5b41ec6605220572..4f62031626b0d833de940baa2ab90f9a4a8253e5 100755
--- a/tools/binary_size/create_html_breakdown.py
+++ b/tools/binary_size/create_html_breakdown.py
@@ -121,7 +121,7 @@ def _MakeCompactTree(symbols, include_symbols):
_NODE_MAX_DEPTH_KEY: 0,
}
for symbol in symbols:
- file_path = symbol.path or _NAME_NO_PATH_BUCKET
+ file_path = symbol.source_path or symbol.object_path or _NAME_NO_PATH_BUCKET
node = result
depth = 0
for path_part in file_path.split(os.path.sep):
@@ -182,7 +182,7 @@ def main(argv):
size_info = map2size.AnalyzeWithArgs(args, args.input_file)
symbols = size_info.symbols
if not args.include_bss:
- symbols = size_info.WhereInSection('b').Inverted()
+ symbols = symbols.WhereInSection('b').Inverted()
symbols = symbols.WhereBiggerThan(0)
# Copy report boilerplate into output directory. This also proves that the
« no previous file with comments | « tools/binary_size/console.py ('k') | tools/binary_size/describe.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698