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

Issue 2501203002: Move function to compute the max number of threads in a TaskScheduler pool to base/. (Closed)

Created:
4 years, 1 month ago by fdoray
Modified:
4 years, 1 month ago
Reviewers:
robliao, danakj, gab
CC:
chromium-reviews, gab+watch_chromium.org, robliao+watch_chromium.org, fdoray+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move function to compute the max number of threads in a TaskScheduler pool to base/. This CL moves the formula to compute the max number of threads in a TaskScheduler pool from components/task_scheduler_util/ to base/. This will allow the formula to be reused in content clients (content/renderer, content/gpu and content/utility). TBR=danakj@chromium.org BUG=664996 Committed: https://crrev.com/70e1c014474f8094e3b84f60761e355576a0f719 Cr-Commit-Position: refs/heads/master@{#432543}

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : add BASE_EXPORT #

Total comments: 8

Patch Set 4 : CR robliao #4 (remove formula from comment) #

Patch Set 5 : CR robliao #6 (RecommendedMaxNumberOfThreadsInPool) #

Total comments: 2

Patch Set 6 : CR robliao #8 (move BASE_EXPORT) #

Patch Set 7 : do no build on nacl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -12 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
A base/task_scheduler/initialization_util.h View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
A base/task_scheduler/initialization_util.cc View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M components/task_scheduler_util/initialization_util.cc View 1 2 3 4 3 chunks +9 lines, -12 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (18 generated)
fdoray
PTAL
4 years, 1 month ago (2016-11-15 16:31:13 UTC) #3
robliao
https://codereview.chromium.org/2501203002/diff/40001/base/task_scheduler/initialization_util.h File base/task_scheduler/initialization_util.h (right): https://codereview.chromium.org/2501203002/diff/40001/base/task_scheduler/initialization_util.h#newcode13 base/task_scheduler/initialization_util.h:13: // Maximum number of threads = This portion of ...
4 years, 1 month ago (2016-11-15 16:56:10 UTC) #4
fdoray
PTAnL https://codereview.chromium.org/2501203002/diff/40001/base/task_scheduler/initialization_util.h File base/task_scheduler/initialization_util.h (right): https://codereview.chromium.org/2501203002/diff/40001/base/task_scheduler/initialization_util.h#newcode13 base/task_scheduler/initialization_util.h:13: // Maximum number of threads = On 2016/11/15 ...
4 years, 1 month ago (2016-11-15 17:41:39 UTC) #5
robliao
https://codereview.chromium.org/2501203002/diff/40001/base/task_scheduler/initialization_util.h File base/task_scheduler/initialization_util.h (right): https://codereview.chromium.org/2501203002/diff/40001/base/task_scheduler/initialization_util.h#newcode15 base/task_scheduler/initialization_util.h:15: int BASE_EXPORT MaxNumberOfThreadsInPool(int min, On 2016/11/15 17:41:39, fdoray wrote: ...
4 years, 1 month ago (2016-11-15 17:57:38 UTC) #6
fdoray
PTAnL https://codereview.chromium.org/2501203002/diff/40001/base/task_scheduler/initialization_util.h File base/task_scheduler/initialization_util.h (right): https://codereview.chromium.org/2501203002/diff/40001/base/task_scheduler/initialization_util.h#newcode15 base/task_scheduler/initialization_util.h:15: int BASE_EXPORT MaxNumberOfThreadsInPool(int min, On 2016/11/15 17:57:38, robliao ...
4 years, 1 month ago (2016-11-15 18:16:16 UTC) #7
robliao
lgtm + nit https://codereview.chromium.org/2501203002/diff/80001/base/task_scheduler/initialization_util.h File base/task_scheduler/initialization_util.h (right): https://codereview.chromium.org/2501203002/diff/80001/base/task_scheduler/initialization_util.h#newcode14 base/task_scheduler/initialization_util.h:14: int BASE_EXPORT RecommendedMaxNumberOfThreadsInPool(int min, Nit: BASE_EXPORT ...
4 years, 1 month ago (2016-11-15 18:20:10 UTC) #8
fdoray
TBR danakj for base/BUILD.gn https://codereview.chromium.org/2501203002/diff/80001/base/task_scheduler/initialization_util.h File base/task_scheduler/initialization_util.h (right): https://codereview.chromium.org/2501203002/diff/80001/base/task_scheduler/initialization_util.h#newcode14 base/task_scheduler/initialization_util.h:14: int BASE_EXPORT RecommendedMaxNumberOfThreadsInPool(int min, On ...
4 years, 1 month ago (2016-11-15 18:45:12 UTC) #13
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/2501203002/100001
4 years, 1 month ago (2016-11-15 18:46:12 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/272765)
4 years, 1 month ago (2016-11-15 19:30:28 UTC) #18
gab
Add to CL description where this will be used. lgtm otherwise
4 years, 1 month ago (2016-11-15 20:35:51 UTC) #19
fdoray
On 2016/11/15 20:35:51, gab wrote: > Add to CL description where this will be used. ...
4 years, 1 month ago (2016-11-15 21:39:45 UTC) #21
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/2501203002/120001
4 years, 1 month ago (2016-11-15 21:40:58 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/261091)
4 years, 1 month ago (2016-11-15 22:03:38 UTC) #26
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/2501203002/120001
4 years, 1 month ago (2016-11-15 22:07:39 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/261161)
4 years, 1 month ago (2016-11-15 22:42:43 UTC) #30
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/2501203002/120001
4 years, 1 month ago (2016-11-16 16:36:15 UTC) #32
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-16 17:43:35 UTC) #34
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 17:49:43 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/70e1c014474f8094e3b84f60761e355576a0f719
Cr-Commit-Position: refs/heads/master@{#432543}

Powered by Google App Engine
This is Rietveld 408576698