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

Issue 1445633002: [Android] Upstream resource_sizes and check_static_initializers and add chartjson support (Closed)

Created:
5 years, 1 month ago by rnephew (Reviews Here)
Modified:
4 years, 10 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, mikecase+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Upstream resource_sizes and check_static_initializers and add chartjson support BUG=546012 Committed: https://crrev.com/f10ebab18d15241a1bd7c0b790a9256e4cafa623 Cr-Commit-Position: refs/heads/master@{#365933}

Patch Set 1 #

Total comments: 2

Patch Set 2 : move typechecks to begining of functions #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : fix imports #

Total comments: 27

Patch Set 6 : #

Patch Set 7 : cmd_helper #

Total comments: 2

Patch Set 8 : #

Total comments: 6

Patch Set 9 : #

Patch Set 10 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -0 lines) Patch
A build/android/resource_sizes.py View 1 2 3 4 5 6 7 8 9 1 chunk +388 lines, -0 lines 2 comments Download

Messages

Total messages: 36 (7 generated)
rnephew (Reviews Here)
Upstreaming of resource_sizes.py Changes for pylint errors and adding support for chartjson format for perf ...
5 years, 1 month ago (2015-11-13 17:52:41 UTC) #2
agrieve
lgtm https://codereview.chromium.org/1445633002/diff/1/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/1445633002/diff/1/build/android/resource_sizes.py#newcode170 build/android/resource_sizes.py:170: if not isinstance(chartjson, dict): nit: either remove this ...
5 years, 1 month ago (2015-11-13 19:54:41 UTC) #3
rnephew (Reviews Here)
https://codereview.chromium.org/1445633002/diff/1/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/1445633002/diff/1/build/android/resource_sizes.py#newcode170 build/android/resource_sizes.py:170: if not isinstance(chartjson, dict): On 2015/11/13 19:54:41, agrieve wrote: ...
5 years, 1 month ago (2015-11-13 20:53:18 UTC) #4
perezju
https://codereview.chromium.org/1445633002/diff/20001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/1445633002/diff/20001/build/android/resource_sizes.py#newcode78 build/android/resource_sizes.py:78: def add_value(chart_data, graph_title, trace_title, value, units, style: it's no ...
5 years, 1 month ago (2015-11-16 10:22:34 UTC) #5
rnephew (Reviews Here)
https://codereview.chromium.org/1445633002/diff/20001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/1445633002/diff/20001/build/android/resource_sizes.py#newcode78 build/android/resource_sizes.py:78: def add_value(chart_data, graph_title, trace_title, value, units, On 2015/11/16 10:22:34, ...
5 years, 1 month ago (2015-11-16 16:22:01 UTC) #6
perezju
lgtm w/nits also, just to double-check, this already includes the necessary fixes for the numbers ...
5 years, 1 month ago (2015-11-17 09:39:34 UTC) #7
jbudorick
https://codereview.chromium.org/1445633002/diff/80001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/1445633002/diff/80001/build/android/resource_sizes.py#newcode24 build/android/resource_sizes.py:24: sys.path.append( On 2015/11/17 09:39:33, perezju wrote: > optional nit: ...
5 years, 1 month ago (2015-11-17 14:45:21 UTC) #8
rnephew (Reviews Here)
For the size changes, I thought (based on comment #9 in the bug) that that ...
5 years, 1 month ago (2015-11-17 15:39:07 UTC) #9
rnephew (Reviews Here)
https://codereview.chromium.org/1445633002/diff/80001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/1445633002/diff/80001/build/android/resource_sizes.py#newcode70 build/android/resource_sizes.py:70: handle = subprocess.Popen(['nm', so_path], stdout=subprocess.PIPE) On 2015/11/17 14:45:20, jbudorick ...
5 years, 1 month ago (2015-11-17 15:52:30 UTC) #10
perezju
Andrew, can you confirm whether the numbers provided by the script were already accurate? Randy, ...
5 years, 1 month ago (2015-11-18 09:55:41 UTC) #11
agrieve
On 2015/11/18 09:55:41, perezju wrote: > Andrew, can you confirm whether the numbers provided by ...
5 years, 1 month ago (2015-11-18 14:59:00 UTC) #12
rnephew (Reviews Here)
https://codereview.chromium.org/1445633002/diff/120001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/1445633002/diff/120001/build/android/resource_sizes.py#newcode71 build/android/resource_sizes.py:71: _, output = cmd_helper.GetCmdStatusAndOutput(['nm', so_path]) On 2015/11/18 09:55:41, perezju ...
5 years, 1 month ago (2015-11-18 15:05:01 UTC) #13
rnephew (Reviews Here)
On 2015/11/18 15:05:01, rnephew1 wrote: > https://codereview.chromium.org/1445633002/diff/120001/build/android/resource_sizes.py > File build/android/resource_sizes.py (right): > > https://codereview.chromium.org/1445633002/diff/120001/build/android/resource_sizes.py#newcode71 > ...
5 years, 1 month ago (2015-11-23 18:48:50 UTC) #14
jbudorick
lgtm w/ nits https://codereview.chromium.org/1445633002/diff/140001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/1445633002/diff/140001/build/android/resource_sizes.py#newcode206 build/android/resource_sizes.py:206: for i in apk.infolist(): nit: for ...
5 years ago (2015-12-17 17:08:14 UTC) #15
rnephew (Reviews Here)
https://codereview.chromium.org/1445633002/diff/140001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/1445633002/diff/140001/build/android/resource_sizes.py#newcode206 build/android/resource_sizes.py:206: for i in apk.infolist(): On 2015/12/17 17:08:14, jbudorick wrote: ...
5 years ago (2015-12-17 17:28:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1445633002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1445633002/180001
5 years ago (2015-12-17 17:29:31 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/620)
5 years ago (2015-12-17 20:39:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1445633002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1445633002/180001
5 years ago (2015-12-17 21:47:59 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years ago (2015-12-17 23:07:08 UTC) #24
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/f10ebab18d15241a1bd7c0b790a9256e4cafa623 Cr-Commit-Position: refs/heads/master@{#365933}
5 years ago (2015-12-17 23:08:14 UTC) #26
Nico
https://codereview.chromium.org/1445633002/diff/180001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/1445633002/diff/180001/build/android/resource_sizes.py#newcode52 build/android/resource_sizes.py:52: 'isolate.cc', why is this completely different from how static ...
5 years ago (2015-12-17 23:16:45 UTC) #28
rnephew (Reviews Here)
https://codereview.chromium.org/1445633002/diff/180001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/1445633002/diff/180001/build/android/resource_sizes.py#newcode52 build/android/resource_sizes.py:52: 'isolate.cc', On 2015/12/17 23:16:45, Nico (office move Wed Thu ...
5 years ago (2015-12-18 18:16:36 UTC) #29
Nico
Well, part of upstreaming is to make things not look out of place upstream, no?
5 years ago (2015-12-18 18:40:15 UTC) #30
rnephew (Reviews Here)
On 2015/12/18 18:40:15, Nico wrote: > Well, part of upstreaming is to make things not ...
4 years, 10 months ago (2016-01-28 19:36:07 UTC) #31
Nico
Thanks for taking a look! sizes.py is here: https://code.google.com/p/chromium/codesearch#chromium/build/scripts/slave/chromium/sizes.py&l=240 It uses `readelf -SW` and some ...
4 years, 10 months ago (2016-01-28 19:46:05 UTC) #32
rnephew (Reviews Here)
On 2016/01/28 19:46:05, Nico wrote: > Thanks for taking a look! > > sizes.py is ...
4 years, 10 months ago (2016-01-28 19:58:09 UTC) #33
Nico
"objdump: can't disassemble for architecture UNKNOWN!" is probably the problem, right? That objdump probably can't ...
4 years, 10 months ago (2016-01-28 20:02:36 UTC) #34
rnephew (Reviews Here)
On 2016/01/28 20:02:36, Nico wrote: > "objdump: can't disassemble for architecture UNKNOWN!" is probably the ...
4 years, 10 months ago (2016-01-28 20:04:13 UTC) #35
perezju
4 years, 10 months ago (2016-02-01 10:09:04 UTC) #36
Message was sent while issue was closed.
On 2016/01/28 20:04:13, rnephew1 wrote:
> On 2016/01/28 20:02:36, Nico wrote:
> > "objdump: can't disassemble for architecture UNKNOWN!" is probably the
> problem,
> > right? That objdump probably can't disassemble arm code, so then
> > dump-static-initializers.py can't work for arm binaries
> 
> Thats my thinking. I'm guessing the new SI count of 32 is correct. I'm going
to
> make a CL with these changes so we can switch the discussion to there.

Thanks for the follow up Randy!

Powered by Google App Engine
This is Rietveld 408576698