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

Issue 2006923004: Add support for user defined "pool" to GN. (Closed)

Created:
4 years, 7 months ago by sdefresne
Modified:
4 years, 6 months ago
Reviewers:
Dirk Pranke, brettw
CC:
chromium-reviews, Dirk Pranke, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for user defined "pool" to GN. Allow user to define pool of limited size to limit the number of concurrent tasks that are executed for a given set of tools. The pool object directly correspond to a ninja pool and can be shared by multiple targets. Design document: https://docs.google.com/document/d/1b598i4WmeFOe3_iRBrjPKSXdcR5R32UPtgxqKmoY2-M/view BUG=612786 Committed: https://crrev.com/40451c5093a4108bf65d3aae30bea2ab014f4b94 Cr-Commit-Position: refs/heads/master@{#397917}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address comments #

Patch Set 3 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -18 lines) Patch
M tools/gn/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gn/builder.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/builder.cc View 1 4 chunks +39 lines, -0 lines 0 comments Download
M tools/gn/builder_record.h View 1 chunk +2 lines, -1 line 0 comments Download
M tools/gn/builder_record.cc View 3 chunks +6 lines, -0 lines 0 comments Download
M tools/gn/docs/reference.md View 1 2 2 chunks +49 lines, -0 lines 0 comments Download
M tools/gn/function_toolchain.cc View 1 4 chunks +38 lines, -1 line 0 comments Download
M tools/gn/functions.h View 1 chunk +8 lines, -0 lines 0 comments Download
M tools/gn/functions.cc View 1 3 chunks +90 lines, -0 lines 2 comments Download
M tools/gn/gn.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gn/item.h View 2 chunks +3 lines, -0 lines 0 comments Download
M tools/gn/item.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M tools/gn/ninja_build_writer.h View 1 4 chunks +5 lines, -1 line 0 comments Download
M tools/gn/ninja_build_writer.cc View 1 4 chunks +16 lines, -5 lines 0 comments Download
M tools/gn/ninja_build_writer_unittest.cc View 1 4 chunks +15 lines, -2 lines 0 comments Download
M tools/gn/ninja_toolchain_writer.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M tools/gn/ninja_writer.h View 1 2 chunks +6 lines, -4 lines 0 comments Download
M tools/gn/ninja_writer.cc View 1 6 chunks +19 lines, -4 lines 0 comments Download
A tools/gn/pool.h View 1 1 chunk +41 lines, -0 lines 0 comments Download
A tools/gn/pool.cc View 1 1 chunk +48 lines, -0 lines 0 comments Download
M tools/gn/tool.h View 1 4 chunks +10 lines, -0 lines 0 comments Download
M tools/gn/toolchain.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/toolchain.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
sdefresne
Please take a look.
4 years, 7 months ago (2016-05-24 15:09:26 UTC) #3
brettw
https://codereview.chromium.org/2006923004/diff/20001/tools/gn/functions.cc File tools/gn/functions.cc (right): https://codereview.chromium.org/2006923004/diff/20001/tools/gn/functions.cc#newcode694 tools/gn/functions.cc:694: " A pool is referenced by its label just ...
4 years, 7 months ago (2016-05-24 22:03:31 UTC) #4
Dirk Pranke
don't forget to update //tools/gn/docs/reference.md as well. https://codereview.chromium.org/2006923004/diff/20001/tools/gn/function_toolchain.cc File tools/gn/function_toolchain.cc (right): https://codereview.chromium.org/2006923004/diff/20001/tools/gn/function_toolchain.cc#newcode551 tools/gn/function_toolchain.cc:551: " Label ...
4 years, 7 months ago (2016-05-25 02:04:52 UTC) #6
sdefresne
Please take another look. I think I've addressed all comments. https://codereview.chromium.org/2006923004/diff/20001/tools/gn/function_toolchain.cc File tools/gn/function_toolchain.cc (right): https://codereview.chromium.org/2006923004/diff/20001/tools/gn/function_toolchain.cc#newcode551 ...
4 years, 6 months ago (2016-05-26 15:38:37 UTC) #7
sdefresne
Ping?
4 years, 6 months ago (2016-05-28 12:31:10 UTC) #8
sdefresne
Ping?
4 years, 6 months ago (2016-06-03 07:42:54 UTC) #9
brettw
lgtm
4 years, 6 months ago (2016-06-03 21:24:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2006923004/60001
4 years, 6 months ago (2016-06-04 11:33:07 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 6 months ago (2016-06-04 12:37:43 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/40451c5093a4108bf65d3aae30bea2ab014f4b94 Cr-Commit-Position: refs/heads/master@{#397917}
4 years, 6 months ago (2016-06-04 12:38:47 UTC) #16
Dirk Pranke
4 years, 6 months ago (2016-06-06 23:32:18 UTC) #17
Message was sent while issue was closed.
Maybe fix the typos and update //tools/gn/docs/reference.md in a follow-up
patch?

https://codereview.chromium.org/2006923004/diff/60001/tools/gn/functions.cc
File tools/gn/functions.cc (right):

https://codereview.chromium.org/2006923004/diff/60001/tools/gn/functions.cc#n...
tools/gn/functions.cc:695: "  of more than one toolchain it is recommended to
specify an explicit\n"
nit: "in the context of"

https://codereview.chromium.org/2006923004/diff/60001/tools/gn/functions.cc#n...
tools/gn/functions.cc:696: "  toolchain when definining and referencing a
pool.\n"
nit: "defining"

Powered by Google App Engine
This is Rietveld 408576698