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 2220643002: Initialize the TaskScheduler with Variation Parameters if Available (Closed)

Created:
4 years, 4 months ago by robliao
Modified:
4 years, 4 months ago
Reviewers:
Lei Zhang, gab, fdoray
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initialize the TaskScheduler with Variation Parameters if Available This connects the initialization of TaskScheduler to the availability of an appropriate finch config. Support via a command line and flags will be available in a forthcoming CL. BUG=553459 Committed: https://crrev.com/7af523f24d4487d4c58d439f29a956cbee7ebbcf Cr-Commit-Position: refs/heads/master@{#410786}

Patch Set 1 #

Total comments: 24

Patch Set 2 : CR Feedback #

Total comments: 4

Patch Set 3 : Grouped All Predefined Parameters Together #

Total comments: 5

Patch Set 4 : CR Feedback #

Total comments: 12

Patch Set 5 : CR Feedback #

Total comments: 15

Patch Set 6 : CR Feedback #

Total comments: 2

Patch Set 7 : Add Const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -0 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 5 chunks +130 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (23 generated)
robliao
4 years, 4 months ago (2016-08-05 20:29:13 UTC) #2
fdoray
https://codereview.chromium.org/2220643002/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/1/chrome/browser/chrome_browser_main.cc#newcode20 chrome/browser/chrome_browser_main.cc:20: #include "base/command_line.h" #include "base/logging.h" https://codereview.chromium.org/2220643002/diff/1/chrome/browser/chrome_browser_main.cc#newcode325 chrome/browser/chrome_browser_main.cc:325: enum WorkerPoolType : ...
4 years, 4 months ago (2016-08-05 20:58:54 UTC) #3
robliao
Comments applied. Thanks! https://codereview.chromium.org/2220643002/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/1/chrome/browser/chrome_browser_main.cc#newcode20 chrome/browser/chrome_browser_main.cc:20: #include "base/command_line.h" On 2016/08/05 20:58:54, fdoray ...
4 years, 4 months ago (2016-08-05 22:23:29 UTC) #6
fdoray
A suggestion. Code l-g-t-m if you don't like my suggestion. https://codereview.chromium.org/2220643002/diff/60001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/60001/chrome/browser/chrome_browser_main.cc#newcode408 ...
4 years, 4 months ago (2016-08-05 22:59:12 UTC) #7
robliao
https://codereview.chromium.org/2220643002/diff/60001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/60001/chrome/browser/chrome_browser_main.cc#newcode408 chrome/browser/chrome_browser_main.cc:408: static_assert(arraysize(kWorkerPoolNames) == WORKER_POOL_COUNT, On 2016/08/05 22:59:12, fdoray wrote: > ...
4 years, 4 months ago (2016-08-05 23:45:38 UTC) #8
fdoray
lgtm w/ comments https://codereview.chromium.org/2220643002/diff/80001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/80001/chrome/browser/chrome_browser_main.cc#newcode350 chrome/browser/chrome_browser_main.cc:350: const base::StringPiece& pool_descriptor) { Prefer passing ...
4 years, 4 months ago (2016-08-06 00:39:55 UTC) #9
robliao
https://codereview.chromium.org/2220643002/diff/80001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/80001/chrome/browser/chrome_browser_main.cc#newcode350 chrome/browser/chrome_browser_main.cc:350: const base::StringPiece& pool_descriptor) { On 2016/08/06 00:39:55, fdoray wrote: ...
4 years, 4 months ago (2016-08-06 01:19:47 UTC) #10
fdoray
lgtm https://codereview.chromium.org/2220643002/diff/80001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/80001/chrome/browser/chrome_browser_main.cc#newcode408 chrome/browser/chrome_browser_main.cc:408: static const SchedulerWorkerPoolPredefinedParams kAllPredefinedParams[] = { On 2016/08/06 ...
4 years, 4 months ago (2016-08-06 01:47:33 UTC) #11
gab
lgtm w/ comments and I'd change CL description/title to: "Initialize the TaskScheduler with variation parameters ...
4 years, 4 months ago (2016-08-06 21:25:50 UTC) #12
robliao
https://codereview.chromium.org/2220643002/diff/100001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/100001/chrome/browser/chrome_browser_main.cc#newcode368 chrome/browser/chrome_browser_main.cc:368: const int threads = std::round<int>(num_of_cores * multiplier) + offset; ...
4 years, 4 months ago (2016-08-08 17:26:25 UTC) #14
robliao
> lgtm w/ comments and I'd change CL description/title to: > > "Initialize the TaskScheduler ...
4 years, 4 months ago (2016-08-08 17:27:41 UTC) #15
gab
PS: We don't typically capitalize CL titles AFAIK (it reads weird IMO). https://codereview.chromium.org/2220643002/diff/100001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc ...
4 years, 4 months ago (2016-08-08 17:42:09 UTC) #16
robliao
> PS: We don't typically capitalize CL titles AFAIK (it reads weird IMO). I've generally ...
4 years, 4 months ago (2016-08-08 20:06:54 UTC) #18
robliao
thestig@chromium.org: Please review changes in chrome_browser_main.cc. Thanks!
4 years, 4 months ago (2016-08-08 22:30:18 UTC) #22
Lei Zhang
Is there any place outside of chrome/browser/chrome_browser_main.cc that would make sense for this code to ...
4 years, 4 months ago (2016-08-08 23:24:58 UTC) #27
robliao
On 2016/08/08 23:24:58, Lei Zhang wrote: > Is there any place outside of chrome/browser/chrome_browser_main.cc that ...
4 years, 4 months ago (2016-08-08 23:35:33 UTC) #29
Lei Zhang
https://codereview.chromium.org/2220643002/diff/140001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/140001/chrome/browser/chrome_browser_main.cc#newcode331 chrome/browser/chrome_browser_main.cc:331: WORKER_POOL_COUNT, subtle nit: Usually we leave a comma at ...
4 years, 4 months ago (2016-08-08 23:37:44 UTC) #30
robliao
https://codereview.chromium.org/2220643002/diff/140001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/140001/chrome/browser/chrome_browser_main.cc#newcode331 chrome/browser/chrome_browser_main.cc:331: WORKER_POOL_COUNT, On 2016/08/08 23:37:44, Lei Zhang wrote: > subtle ...
4 years, 4 months ago (2016-08-09 00:20:45 UTC) #33
Lei Zhang
lgtm https://codereview.chromium.org/2220643002/diff/140001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/140001/chrome/browser/chrome_browser_main.cc#newcode368 chrome/browser/chrome_browser_main.cc:368: const int threads = std::ceil<int>(num_of_cores * multiplier) + ...
4 years, 4 months ago (2016-08-09 00:43:27 UTC) #34
gab
Still lgtm w/ micro-nit https://codereview.chromium.org/2220643002/diff/200001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/200001/chrome/browser/chrome_browser_main.cc#newcode383 chrome/browser/chrome_browser_main.cc:383: bool is_background = traits.priority() == ...
4 years, 4 months ago (2016-08-09 15:54:56 UTC) #35
gab
On 2016/08/08 23:24:58, Lei Zhang wrote: > Is there any place outside of chrome/browser/chrome_browser_main.cc that ...
4 years, 4 months ago (2016-08-09 15:56:57 UTC) #36
Lei Zhang
On 2016/08/09 15:56:57, gab wrote: > I keep hearing this but I don't quite understand, ...
4 years, 4 months ago (2016-08-09 18:54:09 UTC) #37
robliao
https://codereview.chromium.org/2220643002/diff/200001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2220643002/diff/200001/chrome/browser/chrome_browser_main.cc#newcode383 chrome/browser/chrome_browser_main.cc:383: bool is_background = traits.priority() == base::TaskPriority::BACKGROUND; On 2016/08/09 15:54:56, ...
4 years, 4 months ago (2016-08-09 19:14:37 UTC) #38
gab
On 2016/08/09 18:54:09, Lei Zhang wrote: > On 2016/08/09 15:56:57, gab wrote: > > I ...
4 years, 4 months ago (2016-08-09 19:16:12 UTC) #41
gab
On 2016/08/09 19:14:37, robliao wrote: > https://codereview.chromium.org/2220643002/diff/200001/chrome/browser/chrome_browser_main.cc > File chrome/browser/chrome_browser_main.cc (right): > > https://codereview.chromium.org/2220643002/diff/200001/chrome/browser/chrome_browser_main.cc#newcode383 > ...
4 years, 4 months ago (2016-08-09 19:17:44 UTC) #42
robliao
On 2016/08/09 19:16:12, gab wrote: > On 2016/08/09 18:54:09, Lei Zhang wrote: > > On ...
4 years, 4 months ago (2016-08-09 19:19:47 UTC) #43
robliao
On 2016/08/09 19:16:12, gab wrote: > On 2016/08/09 18:54:09, Lei Zhang wrote: > > On ...
4 years, 4 months ago (2016-08-09 19:19:49 UTC) #44
Lei Zhang
On 2016/08/09 19:16:12, gab wrote: > On 2016/08/09 18:54:09, Lei Zhang wrote: > > On ...
4 years, 4 months ago (2016-08-09 19:27:32 UTC) #45
Lei Zhang
On 2016/08/09 15:56:57, gab wrote: > I keep hearing this but I don't quite understand, ...
4 years, 4 months ago (2016-08-09 19:35:47 UTC) #46
gab
On 2016/08/09 19:27:32, Lei Zhang wrote: > On 2016/08/09 19:16:12, gab wrote: > > On ...
4 years, 4 months ago (2016-08-09 19:46:32 UTC) #47
gab
On 2016/08/09 19:35:47, Lei Zhang wrote: > On 2016/08/09 15:56:57, gab wrote: > > I ...
4 years, 4 months ago (2016-08-09 19:47:26 UTC) #48
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/2220643002/220001
4 years, 4 months ago (2016-08-09 20:02:16 UTC) #53
commit-bot: I haz the power
Committed patchset #7 (id:220001)
4 years, 4 months ago (2016-08-09 20:08:43 UTC) #55
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 20:10:34 UTC) #57
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7af523f24d4487d4c58d439f29a956cbee7ebbcf
Cr-Commit-Position: refs/heads/master@{#410786}

Powered by Google App Engine
This is Rietveld 408576698