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

Issue 2724253002: V1 of //tools/binary_size rewrite (Closed)

Created:
3 years, 9 months ago by agrieve
Modified:
3 years, 9 months ago
Reviewers:
estevenson
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

V1 of //tools/binary_size rewrite The key insight to the rewrite is that linker map files are more useful than nm output. The two main difference: 1. They report object paths (.o files) rather than source paths 2. They require seconds to parse rather than 10s of minutes Helpers: parsers.py: Parsing logic for .map files symbols.py: Data models for Symbol and SymbolGroup helpers.py: Dumping group for shared functions Executables: analyze.py: Post-processing of parsed .map files. create_html_breakdown.py: Replaces run_binary_size_analysis.py query.py: CLI for analyzing symbols NOTRY=true BUG=681694 Review-Url: https://codereview.chromium.org/2724253002 Cr-Commit-Position: refs/heads/master@{#458397} Committed: https://chromium.googlesource.com/chromium/src/+/20ab3bfd586341cc0d3ffc174116be53de2ca2f3

Patch Set 1 #

Patch Set 2 : cleaned up into parsers #

Patch Set 3 : FREEZE.unindexed #

Patch Set 4 : Going for it #

Patch Set 5 : nm tweaks #

Patch Set 6 : yo dawg #

Patch Set 7 : split into files #

Patch Set 8 : add better roadmap comments #

Patch Set 9 : rebase #

Patch Set 10 : Add repl to query.py #

Total comments: 20

Patch Set 11 : Add test for function signatures #

Patch Set 12 : README tweaks, more cases for function parsing #

Total comments: 16

Patch Set 13 : Review comments #

Patch Set 14 : Size report tweaks, fix --tool-prefix, fix []s dropped from names #

Patch Set 15 : Put everthing after ()s in the name, not just [attrib] #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1423 lines, -789 lines) Patch
M tools/binary_size/PRESUBMIT.py View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M tools/binary_size/README.md View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +46 lines, -35 lines 0 comments Download
A tools/binary_size/analyze.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +356 lines, -0 lines 0 comments Download
A tools/binary_size/create_html_breakdown.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +204 lines, -0 lines 0 comments Download
A tools/binary_size/function_signature.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +104 lines, -0 lines 0 comments Download
A tools/binary_size/function_signature_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +90 lines, -0 lines 0 comments Download
A tools/binary_size/helpers.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +50 lines, -0 lines 0 comments Download
A tools/binary_size/mapfileparser.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +207 lines, -0 lines 0 comments Download
A tools/binary_size/query.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +134 lines, -0 lines 0 comments Download
D tools/binary_size/run_binary_size_analysis.py View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -679 lines 0 comments Download
A tools/binary_size/symbols.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +207 lines, -0 lines 0 comments Download
M tools/binary_size/template/D3SymbolTreeMap.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -37 lines 0 comments Download
M tools/binary_size/template/index.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +14 lines, -37 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (9 generated)
agrieve
On 2017/03/14 03:00:21, agrieve wrote: > Description was changed from > > ========== > Adds ...
3 years, 9 months ago (2017-03-14 03:00:26 UTC) #4
estevenson
Still going through it, this is pretty neat! https://codereview.chromium.org/2724253002/diff/180001/tools/binary_size/README.md File tools/binary_size/README.md (right): https://codereview.chromium.org/2724253002/diff/180001/tools/binary_size/README.md#newcode9 tools/binary_size/README.md:9: tools/binary_size/analyze.py ...
3 years, 9 months ago (2017-03-16 19:49:18 UTC) #7
estevenson
lgtm % suggestions/questions https://codereview.chromium.org/2724253002/diff/180001/tools/binary_size/analyze.py File tools/binary_size/analyze.py (right): https://codereview.chromium.org/2724253002/diff/180001/tools/binary_size/analyze.py#newcode316 tools/binary_size/analyze.py:316: _RemoveDuplicatesAndCalculatePadding(result.symbol_group) On 2017/03/16 19:49:18, estevenson wrote: ...
3 years, 9 months ago (2017-03-20 14:13:03 UTC) #8
agrieve
comments addressed. Also fixed a few other things I found broken in the meantime. https://codereview.chromium.org/2724253002/diff/180001/tools/binary_size/README.md ...
3 years, 9 months ago (2017-03-20 19:58:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2724253002/280001
3 years, 9 months ago (2017-03-21 14:06:33 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 14:11:40 UTC) #15
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/20ab3bfd586341cc0d3ffc174116...

Powered by Google App Engine
This is Rietveld 408576698