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

Issue 1951453002: Name TaskScheduler's worker threads (Closed)

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

Description

Name TaskScheduler's worker threads In conjunction with https://codereview.chromium.org/1937323002/ this makes TaskScheduler work with chrome://tracing. Thread name will be comprised of 3 parts: [1] Thread Pool name, e.g. "TaskSchedulerBackgroudFileIO" [2] "Worker" [3] Thread Index in thread pool This can make for long names, e.g.: "TaskSchedulerBackgroudFileIOWorker3" but I think a descriptive name is still preferable. The one caveat is that WinDBG's implementation of thread name currently truncates at 32 characters... I'm willing to live with that for now until (if ever) we realize it's too annoying. BUG=553459 Committed: https://crrev.com/a0813e0c0286ee6790433164957141e9f299bff7 Cr-Commit-Position: refs/heads/master@{#392351} Committed: https://crrev.com/b39e39eeb679c3bf45a444e9e6d0c5e364a8cd17 Cr-Commit-Position: refs/heads/master@{#392395}

Patch Set 1 #

Patch Set 2 : update comment #

Total comments: 9

Patch Set 3 : review:fdoray-robliao#5-6 #

Total comments: 2

Patch Set 4 : review:fdoray#9 #

Patch Set 5 : update comment #

Patch Set 6 : merge up to r392140 #

Patch Set 7 : use int for Worker thread index #

Patch Set 8 : explicit cast to int #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -23 lines) Patch
M base/task_scheduler/scheduler_thread_pool_impl.h View 1 2 5 chunks +11 lines, -4 lines 0 comments Download
M base/task_scheduler/scheduler_thread_pool_impl.cc View 1 2 3 4 5 6 7 10 chunks +25 lines, -9 lines 0 comments Download
M base/task_scheduler/scheduler_thread_pool_impl_unittest.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M base/task_scheduler/task_scheduler_impl.cc View 1 2 3 4 5 1 chunk +12 lines, -8 lines 0 comments Download
M base/task_scheduler/task_scheduler_impl_unittest.cc View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (23 generated)
gab
Francois/Rob PTAL
4 years, 7 months ago (2016-05-03 18:16:48 UTC) #3
fdoray
https://codereview.chromium.org/1951453002/diff/20001/base/task_scheduler/scheduler_thread_pool_impl.cc File base/task_scheduler/scheduler_thread_pool_impl.cc (right): https://codereview.chromium.org/1951453002/diff/20001/base/task_scheduler/scheduler_thread_pool_impl.cc#newcode8 base/task_scheduler/scheduler_thread_pool_impl.cc:8: #include <utility> #include <stddef.h> for size_t https://codereview.chromium.org/1951453002/diff/20001/base/task_scheduler/scheduler_thread_pool_impl.cc#newcode398 base/task_scheduler/scheduler_thread_pool_impl.cc:398: index_, ...
4 years, 7 months ago (2016-05-03 19:01:50 UTC) #5
robliao
https://codereview.chromium.org/1951453002/diff/20001/base/task_scheduler/scheduler_thread_pool_impl.cc File base/task_scheduler/scheduler_thread_pool_impl.cc (right): https://codereview.chromium.org/1951453002/diff/20001/base/task_scheduler/scheduler_thread_pool_impl.cc#newcode398 base/task_scheduler/scheduler_thread_pool_impl.cc:398: index_, PlatformThread::CurrentId())); On 2016/05/03 19:01:50, fdoray wrote: > Why ...
4 years, 7 months ago (2016-05-03 23:35:38 UTC) #6
gab
Done, PTAL, thanks! https://codereview.chromium.org/1951453002/diff/20001/base/task_scheduler/scheduler_thread_pool_impl.cc File base/task_scheduler/scheduler_thread_pool_impl.cc (right): https://codereview.chromium.org/1951453002/diff/20001/base/task_scheduler/scheduler_thread_pool_impl.cc#newcode8 base/task_scheduler/scheduler_thread_pool_impl.cc:8: #include <utility> On 2016/05/03 19:01:50, fdoray ...
4 years, 7 months ago (2016-05-04 18:11:37 UTC) #8
fdoray
lgtm https://codereview.chromium.org/1951453002/diff/60001/base/task_scheduler/task_scheduler_impl_unittest.cc File base/task_scheduler/task_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/1951453002/diff/60001/base/task_scheduler/task_scheduler_impl_unittest.cc#newcode101 base/task_scheduler/task_scheduler_impl_unittest.cc:101: if (traits.priority() == TaskPriority::BACKGROUND) { I would remove ...
4 years, 7 months ago (2016-05-04 19:04:32 UTC) #9
gab
Thanks, done. https://codereview.chromium.org/1951453002/diff/60001/base/task_scheduler/task_scheduler_impl_unittest.cc File base/task_scheduler/task_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/1951453002/diff/60001/base/task_scheduler/task_scheduler_impl_unittest.cc#newcode101 base/task_scheduler/task_scheduler_impl_unittest.cc:101: if (traits.priority() == TaskPriority::BACKGROUND) { On 2016/05/04 ...
4 years, 7 months ago (2016-05-04 21:00:02 UTC) #11
robliao
lgtm
4 years, 7 months ago (2016-05-05 10:38:35 UTC) #13
gab
CC dana FYI (I think this is internal enough not to require your explicit review ...
4 years, 7 months ago (2016-05-05 13:53:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951453002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951453002/100001
4 years, 7 months ago (2016-05-05 13:53:54 UTC) #18
gab
On 2016/05/05 13:53:54, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 7 months ago (2016-05-05 13:54:12 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951453002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951453002/100001
4 years, 7 months ago (2016-05-06 16:30:11 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/1734) ios-simulator on ...
4 years, 7 months ago (2016-05-06 16:31:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951453002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951453002/120001
4 years, 7 months ago (2016-05-06 20:59:52 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/62249) cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 7 months ago (2016-05-06 21:08:13 UTC) #28
gab
Switched to using int instead of size_t to keep the |index_|, makes printf easier (otherwise ...
4 years, 7 months ago (2016-05-09 16:26:53 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951453002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951453002/140001
4 years, 7 months ago (2016-05-09 16:27:21 UTC) #32
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 7 months ago (2016-05-09 17:30:05 UTC) #34
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/a0813e0c0286ee6790433164957141e9f299bff7 Cr-Commit-Position: refs/heads/master@{#392351}
4 years, 7 months ago (2016-05-09 17:31:14 UTC) #36
iclelland
A revert of this CL (patchset #7 id:140001) has been created in https://codereview.chromium.org/1958973003/ by iclelland@chromium.org. ...
4 years, 7 months ago (2016-05-09 18:15:10 UTC) #37
gab
On 2016/05/09 18:15:10, iclelland wrote: > A revert of this CL (patchset #7 id:140001) has ...
4 years, 7 months ago (2016-05-09 18:22:15 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951453002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951453002/160001
4 years, 7 months ago (2016-05-09 18:23:18 UTC) #42
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 7 months ago (2016-05-09 19:29:01 UTC) #44
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 19:31:21 UTC) #46
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b39e39eeb679c3bf45a444e9e6d0c5e364a8cd17
Cr-Commit-Position: refs/heads/master@{#392395}

Powered by Google App Engine
This is Rietveld 408576698