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

Issue 2810813003: Add resource_sizes diffs to diagnose_apk_bloat.py. (Closed)

Created:
3 years, 8 months ago by estevenson
Modified:
3 years, 8 months ago
Reviewers:
agrieve
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

Add resource_sizes diffs to diagnose_apk_bloat.py. This CL adds the ability to show the differences in resource_sizes.py metrics using dianose_apk_bloat.py. It also includes a few other updates: * Simplfy output and write diff output to file * Generate and save .size files (and save .so files for Disassemble()) * Be nicer by restoring user branches after script runs BUG=710076 Review-Url: https://codereview.chromium.org/2810813003 Cr-Commit-Position: refs/heads/master@{#464023} Committed: https://chromium.googlesource.com/chromium/src/+/08f973975155004f8a9bc6887f6e9551cedbac1d

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments + rebase onto supersize #

Patch Set 3 : Put ProduceDiff back into BaseDiff #

Total comments: 4

Patch Set 4 : Change output file naming convention + append to it #

Total comments: 1

Patch Set 5 : AppendResults #

Patch Set 6 : Comment AppendResults #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -62 lines) Patch
M tools/binary_size/README.md View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tools/binary_size/diagnose_apk_bloat.py View 1 2 3 4 5 5 chunks +210 lines, -60 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
estevenson
ptal Andrew. Output looks like: ******************************Resource Sizes Diff****************************** Summary: Normalized APK size: +2 bytes Details: ...
3 years, 8 months ago (2017-04-11 01:52:53 UTC) #2
agrieve
Looks great! Just a few small comments. https://codereview.chromium.org/2810813003/diff/1/tools/binary_size/diagnose_apk_bloat.py File tools/binary_size/diagnose_apk_bloat.py (right): https://codereview.chromium.org/2810813003/diff/1/tools/binary_size/diagnose_apk_bloat.py#newcode95 tools/binary_size/diagnose_apk_bloat.py:95: v['units'])) nit: ...
3 years, 8 months ago (2017-04-11 14:10:32 UTC) #3
estevenson
https://codereview.chromium.org/2810813003/diff/1/tools/binary_size/diagnose_apk_bloat.py File tools/binary_size/diagnose_apk_bloat.py (right): https://codereview.chromium.org/2810813003/diff/1/tools/binary_size/diagnose_apk_bloat.py#newcode95 tools/binary_size/diagnose_apk_bloat.py:95: v['units'])) On 2017/04/11 14:10:32, agrieve wrote: > nit: Let's ...
3 years, 8 months ago (2017-04-11 21:53:16 UTC) #5
estevenson
On 2017/04/11 21:53:16, estevenson wrote: > https://codereview.chromium.org/2810813003/diff/1/tools/binary_size/diagnose_apk_bloat.py > File tools/binary_size/diagnose_apk_bloat.py (right): > > https://codereview.chromium.org/2810813003/diff/1/tools/binary_size/diagnose_apk_bloat.py#newcode95 > ...
3 years, 8 months ago (2017-04-12 00:09:49 UTC) #6
agrieve
just nits lgtm https://codereview.chromium.org/2810813003/diff/40001/tools/binary_size/diagnose_apk_bloat.py File tools/binary_size/diagnose_apk_bloat.py (right): https://codereview.chromium.org/2810813003/diff/40001/tools/binary_size/diagnose_apk_bloat.py#newcode245 tools/binary_size/diagnose_apk_bloat.py:245: _RunCmd(['tools/binary_size/supersize', 'archive', '--output-directory', I think you ...
3 years, 8 months ago (2017-04-12 00:20:50 UTC) #7
agrieve
On 2017/04/12 00:09:49, estevenson wrote: > On 2017/04/11 21:53:16, estevenson wrote: > > > https://codereview.chromium.org/2810813003/diff/1/tools/binary_size/diagnose_apk_bloat.py ...
3 years, 8 months ago (2017-04-12 00:23:56 UTC) #8
estevenson
Will handle commits that sync to pre supersize revs in a follow-up (https://crbug.com/710717) https://codereview.chromium.org/2810813003/diff/40001/tools/binary_size/diagnose_apk_bloat.py File ...
3 years, 8 months ago (2017-04-12 01:39:23 UTC) #9
agrieve
sg, lgtm! (one more nit) https://codereview.chromium.org/2810813003/diff/60001/tools/binary_size/diagnose_apk_bloat.py File tools/binary_size/diagnose_apk_bloat.py (right): https://codereview.chromium.org/2810813003/diff/60001/tools/binary_size/diagnose_apk_bloat.py#newcode39 tools/binary_size/diagnose_apk_bloat.py:39: def PrintResults(self, output_file): nit: ...
3 years, 8 months ago (2017-04-12 02:02:05 UTC) #10
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/2810813003/100001
3 years, 8 months ago (2017-04-12 14:52:58 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 15:05:52 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/08f973975155004f8a9bc6887f6e...

Powered by Google App Engine
This is Rietveld 408576698