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

Issue 2795593005: //tools/binary_size: Various enhancements to console.py (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: Various enhancements to console.py * Map input to "size_info" rather than "size_info1" when there is only one input * For convenience, add variable "symbols = size_info.symbols" * Don't re-sort if SymbolGroup passed to Print() is already sorted * Add more information to Print(verbose=True) * Add a regex helper for looking for names in camelCase/snake_case/etc * Allow group[0xADDRESS] to return the symbol at that address * Revert object_path transformation to how it was before last commit: foo/bar.a/baz.o not, foo/bar.a/(baz.o) Because you expect .endswith('.o'). * Filled out my pydoc. NOTRY=true BUG=681694 Review-Url: https://codereview.chromium.org/2795593005 Cr-Commit-Position: refs/heads/master@{#461821} Committed: https://chromium.googlesource.com/chromium/src/+/728a4d51cdd2ccbd6e3e0e81dad77cdb0834f90f

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : make quick-reference message nicer by separating sSymbol members & making group.symbols private #

Total comments: 6

Patch Set 4 : Review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+515 lines, -103 lines) Patch
M tools/binary_size/README.md View 1 chunk +0 lines, -1 line 0 comments Download
M tools/binary_size/console.py View 1 2 3 6 chunks +38 lines, -15 lines 0 comments Download
M tools/binary_size/describe.py View 1 3 chunks +65 lines, -14 lines 0 comments Download
M tools/binary_size/integration_test.py View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M tools/binary_size/map2size.py View 1 2 4 chunks +11 lines, -9 lines 0 comments Download
A tools/binary_size/match_util.py View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
A tools/binary_size/match_util_test.py View 1 chunk +69 lines, -0 lines 0 comments Download
M tools/binary_size/models.py View 1 2 3 8 chunks +110 lines, -42 lines 0 comments Download
M tools/binary_size/testdata/ActualDiff.golden View 1 2 2 chunks +146 lines, -9 lines 0 comments Download
M tools/binary_size/testdata/ConsoleNullDiff.golden View 1 2 chunks +2 lines, -1 line 0 comments Download
M tools/binary_size/testdata/Map2Size.golden View 2 chunks +3 lines, -3 lines 0 comments Download
M tools/binary_size/testdata/SymbolGroupMethods.golden View 4 chunks +7 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (7 generated)
agrieve
On 2017/04/04 15:06:44, agrieve wrote: > mailto:agrieve@chromium.org changed reviewers: > + mailto:estevenson@chromium.org
3 years, 8 months ago (2017-04-04 15:07:01 UTC) #3
estevenson
lgtm https://codereview.chromium.org/2795593005/diff/40001/tools/binary_size/console.py File tools/binary_size/console.py (right): https://codereview.chromium.org/2795593005/diff/40001/tools/binary_size/console.py#newcode133 tools/binary_size/console.py:133: 'print_syms = symbols.WhereMatches(r"{{_print_}}")', Might be worth documenting the ...
3 years, 8 months ago (2017-04-04 19:55:07 UTC) #4
agrieve
https://codereview.chromium.org/2795593005/diff/40001/tools/binary_size/console.py File tools/binary_size/console.py (right): https://codereview.chromium.org/2795593005/diff/40001/tools/binary_size/console.py#newcode133 tools/binary_size/console.py:133: 'print_syms = symbols.WhereMatches(r"{{_print_}}")', On 2017/04/04 19:55:07, estevenson wrote: > ...
3 years, 8 months ago (2017-04-04 20:11:57 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/2795593005/60001
3 years, 8 months ago (2017-04-04 20:15:53 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 20:40:48 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/728a4d51cdd2ccbd6e3e0e81dad7...

Powered by Google App Engine
This is Rietveld 408576698