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

Issue 2259503002: build: Refactor get_concurrent_links.py (Closed)

Created:
4 years, 4 months ago by boliu
Modified:
4 years, 4 months ago
CC:
chromium-reviews, krasin1, Nico
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

build: Refactor get_concurrent_links.py Instead of passing build config arguments to the python script, allow caller to provide the memory needed per linker and the amount of memory to reserve. Then move the logic specific to build config to gn file, which is a better place in case the logic gets more complicated in the future. Then clean up the script. Factor out a function to get the total ram of system, and unify the logic for calculating the number of concurrent links. Note this intends to be a no-op change, but refactored code is not identical, and there may be corner case differences. BUG=617429 Committed: https://crrev.com/da2a0136724678276ff3d00307edb0d9c9baf4c2 Cr-Commit-Position: refs/heads/master@{#414084}

Patch Set 1 #

Patch Set 2 : refactor logic to gni #

Patch Set 3 : refactor script #

Total comments: 4

Patch Set 4 : handle negative #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -32 lines) Patch
M build/toolchain/concurrent_links.gni View 1 1 chunk +8 lines, -1 line 0 comments Download
M build/toolchain/get_concurrent_links.py View 1 2 3 3 chunks +24 lines, -31 lines 0 comments Download

Messages

Total messages: 30 (14 generated)
boliu
ptal feels like a blunt fix, but in theory should be correct, but fingers crossed ...
4 years, 4 months ago (2016-08-17 18:41:19 UTC) #2
boliu
On 2016/08/17 18:41:19, boliu wrote: > ptal > > feels like a blunt fix, but ...
4 years, 4 months ago (2016-08-17 21:20:39 UTC) #3
Dirk Pranke
This is probably too blunt, as you guessed. At the very least, this might mean ...
4 years, 4 months ago (2016-08-17 22:18:51 UTC) #4
boliu
ptal, repurposed this CL to refactor this instead
4 years, 4 months ago (2016-08-22 17:50:41 UTC) #14
Dirk Pranke
I like this approach. brettw@, brucedawson@, what do you think? cc'ed folks, feel free to ...
4 years, 4 months ago (2016-08-22 17:54:33 UTC) #16
brucedawson
A few comments. Overall it seems like an improvement over the current behavior. I know ...
4 years, 4 months ago (2016-08-22 19:31:32 UTC) #17
Dirk Pranke
On 2016/08/22 19:31:32, brucedawson wrote: > A few comments. Overall it seems like an improvement ...
4 years, 4 months ago (2016-08-22 19:49:26 UTC) #18
brucedawson
One other nit - the CL subject and the first line of the commit message ...
4 years, 4 months ago (2016-08-22 19:58:02 UTC) #19
boliu
> One other nit - the CL subject and the first line of the commit ...
4 years, 4 months ago (2016-08-22 20:49:03 UTC) #20
boliu
ping?
4 years, 4 months ago (2016-08-23 20:38:35 UTC) #21
brucedawson
lgtm
4 years, 4 months ago (2016-08-23 20:43:55 UTC) #22
boliu
Dirk, do you want to stamp too?
4 years, 4 months ago (2016-08-23 21:07:45 UTC) #23
Dirk Pranke
ah, yes. lgtm.
4 years, 4 months ago (2016-08-24 01:45:56 UTC) #24
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/2259503002/60001
4 years, 4 months ago (2016-08-24 13:49:19 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-24 15:58:33 UTC) #28
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 16:01:10 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/da2a0136724678276ff3d00307edb0d9c9baf4c2
Cr-Commit-Position: refs/heads/master@{#414084}

Powered by Google App Engine
This is Rietveld 408576698