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

Issue 2809043003: //tools/binary_size: Group [clone] and ** symbols (Closed)

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

Description

//tools/binary_size: Group [clone] and ** symbols Two types of groups: 1. Those that end with "[clone .part.#]" 2. Star symbols (e.g.: "** symbol gap 3") To handle grouped symbols: * Print(recursive=True) added * Diff() updated to be recursive * Tests updated For the .size files that motivated this change, the diff before had: 355 symbols added (+), 2964 changed (~), 300 removed (-) and after: 345 symbols added (+), 2975 changed (~), 290 removed (-) I was hoping for a bigger reduction, but it turns out the majority of the "noise" is actually from different functions being inlined. This change also changes map2size.py from positional arguments to having: --elf-file, --output-file. It also adds --no-source-paths. These flags make it obvious that the tool can still be used with only a .map file. BUG=681694, 708865 Review-Url: https://codereview.chromium.org/2809043003 Cr-Commit-Position: refs/heads/master@{#463678} Committed: https://chromium.googlesource.com/chromium/src/+/f70d47db0b462dbc08d4d6ae2e633e4e5b0af518

Patch Set 1 #

Total comments: 4

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+584 lines, -302 lines) Patch
M tools/binary_size/console.py View 2 chunks +5 lines, -3 lines 0 comments Download
M tools/binary_size/create_html_breakdown.py View 3 chunks +2 lines, -6 lines 0 comments Download
M tools/binary_size/describe.py View 6 chunks +68 lines, -56 lines 0 comments Download
M tools/binary_size/file_format.py View 4 chunks +6 lines, -6 lines 0 comments Download
M tools/binary_size/integration_test.py View 2 chunks +26 lines, -3 lines 0 comments Download
M tools/binary_size/map2size.py View 14 chunks +177 lines, -71 lines 0 comments Download
M tools/binary_size/models.py View 1 6 chunks +81 lines, -37 lines 0 comments Download
M tools/binary_size/testdata/ActualDiff.golden View 1 chunk +55 lines, -75 lines 0 comments Download
M tools/binary_size/testdata/ConsoleNullDiff.golden View 1 chunk +1 line, -1 line 0 comments Download
A tools/binary_size/testdata/FullDescription.golden View 1 chunk +90 lines, -0 lines 0 comments Download
M tools/binary_size/testdata/Map2Size.golden View 3 chunks +7 lines, -8 lines 0 comments Download
M tools/binary_size/testdata/SymbolGroupMethods.golden View 1 chunk +61 lines, -34 lines 0 comments Download
M tools/binary_size/testdata/test.map View 1 chunk +5 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 11 (6 generated)
agrieve
On 2017/04/11 13:40:50, agrieve wrote: > mailto:agrieve@chromium.org changed reviewers: > + mailto:estevenson@chromium.org
3 years, 8 months ago (2017-04-11 13:40:56 UTC) #3
estevenson
lgtm https://codereview.chromium.org/2809043003/diff/1/tools/binary_size/map2size.py File tools/binary_size/map2size.py (right): https://codereview.chromium.org/2809043003/diff/1/tools/binary_size/map2size.py#newcode405 tools/binary_size/map2size.py:405: parser.add_argument('--elf-file', required=True, nit: won't the --map-file always be ...
3 years, 8 months ago (2017-04-11 17:11:42 UTC) #4
agrieve
https://codereview.chromium.org/2809043003/diff/1/tools/binary_size/map2size.py File tools/binary_size/map2size.py (right): https://codereview.chromium.org/2809043003/diff/1/tools/binary_size/map2size.py#newcode405 tools/binary_size/map2size.py:405: parser.add_argument('--elf-file', required=True, On 2017/04/11 17:11:42, estevenson wrote: > nit: ...
3 years, 8 months ago (2017-04-11 17:32:50 UTC) #5
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/2809043003/20001
3 years, 8 months ago (2017-04-11 17:35:14 UTC) #8
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 17:49:13 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f70d47db0b462dbc08d4d6ae2e63...

Powered by Google App Engine
This is Rietveld 408576698