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

Issue 1937323002: TaskScheduler: Add TRACE_TASK_EXECUTION to TaskTracker::RunTask. (Closed)

Created:
4 years, 7 months ago by fdoray
Modified:
4 years, 7 months ago
CC:
chromium-reviews, gab+watch_chromium.org, robliao+watch_chromium.org, fdoray+watch_chromium.org, Sami, alex clarke (OOO till 29th)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TaskScheduler: Add TRACE_TASK_EXECUTION to TaskTracker::RunTask. This macro will generate a tracing event in the toplevel category when the task scheduler runs a task. TaskAnnotator already generates a tracing event which is connected the post task "flow" events in the disabled-by-default-toplevel category. BUG=553459 Committed: https://crrev.com/dbe69aff8ad2d3e336ecf2b4e83e03d92410e139 Cr-Commit-Position: refs/heads/master@{#391489}

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase, base::RunTask->TaskSchedulerRunTask, no SetSingletonAllowed in scope #

Total comments: 2

Patch Set 3 : CR robliao #7 (add comment) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M base/task_scheduler/task_tracker.cc View 1 2 3 chunks +7 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (6 generated)
fdoray
gab@/robliao@: Can you review this CL? nduca@: Can you confirm that we want both TRACE_TASK_EXECUTION ...
4 years, 7 months ago (2016-05-02 19:50:08 UTC) #2
gab
Thanks for fixing :-) https://codereview.chromium.org/1937323002/diff/1/base/task_scheduler/task_tracker.cc File base/task_scheduler/task_tracker.cc (right): https://codereview.chromium.org/1937323002/diff/1/base/task_scheduler/task_tracker.cc#newcode19 base/task_scheduler/task_tracker.cc:19: const char kRunFunctionName[] = "base::RunTask"; ...
4 years, 7 months ago (2016-05-02 20:31:23 UTC) #3
robliao
https://codereview.chromium.org/1937323002/diff/1/base/task_scheduler/task_tracker.cc File base/task_scheduler/task_tracker.cc (right): https://codereview.chromium.org/1937323002/diff/1/base/task_scheduler/task_tracker.cc#newcode84 base/task_scheduler/task_tracker.cc:84: TRACE_TASK_EXECUTION(kRunFunctionName, *task); Should this occur right after we SetSingletonAllowed?
4 years, 7 months ago (2016-05-02 20:32:34 UTC) #4
fdoray
gab@/robliao@: Can you take another look? Thanks! https://codereview.chromium.org/1937323002/diff/1/base/task_scheduler/task_tracker.cc File base/task_scheduler/task_tracker.cc (right): https://codereview.chromium.org/1937323002/diff/1/base/task_scheduler/task_tracker.cc#newcode19 base/task_scheduler/task_tracker.cc:19: const char ...
4 years, 7 months ago (2016-05-03 14:06:36 UTC) #5
gab
lgtm
4 years, 7 months ago (2016-05-03 15:48:25 UTC) #6
robliao
lgtm https://codereview.chromium.org/1937323002/diff/20001/base/task_scheduler/task_tracker.cc File base/task_scheduler/task_tracker.cc (right): https://codereview.chromium.org/1937323002/diff/20001/base/task_scheduler/task_tracker.cc#newcode21 base/task_scheduler/task_tracker.cc:21: const char kRunFunctionName[] = "TaskSchedulerRunTask"; Comment where this ...
4 years, 7 months ago (2016-05-03 16:46:51 UTC) #7
fdoray
nduca@ or primiano@: Can you confirm that we are using the TRACE_TASK_EXECUTION macro as it ...
4 years, 7 months ago (2016-05-03 17:07:14 UTC) #9
Primiano Tucci (use gerrit)
On 2016/05/03 17:07:14, fdoray wrote: > nduca@ or primiano@: Can you confirm that we are ...
4 years, 7 months ago (2016-05-03 17:22:40 UTC) #10
fdoray
On 2016/05/03 17:22:40, Primiano Tucci wrote: > On 2016/05/03 17:07:14, fdoray wrote: > > nduca@ ...
4 years, 7 months ago (2016-05-03 19:05:37 UTC) #11
Sami
lgtm, this should make the tasks show up in tracing correctly.
4 years, 7 months ago (2016-05-04 11:26:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1937323002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1937323002/40001
4 years, 7 months ago (2016-05-04 11:53:22 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-04 13:13:15 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 13:15:53 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/dbe69aff8ad2d3e336ecf2b4e83e03d92410e139
Cr-Commit-Position: refs/heads/master@{#391489}

Powered by Google App Engine
This is Rietveld 408576698