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

Issue 1237283006: Extract trace from TaskAnnotator::RunTask to its call sites (Closed)

Created:
5 years, 5 months ago by caseq
Modified:
5 years, 5 months ago
CC:
chromium-reviews, scheduler-bugs_chromium.org, chirantan+watch_chromium.org, erikwright+watch_chromium.org, sadrul, Primiano Tucci (use gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract trace from TaskAnnotator::RunTask to its call sites This extracts TRACE_EVENT() that brackets the task being executed from TaskAnnotator::RunTask() to its call sites, so that it covers time spent in the task observers on the top level (i.e. in MessageLoop). BUG=508005 TBR=chirantan Committed: https://crrev.com/596ad0cca35be6b20afba297d3e8c26ae52e3ec2 Cr-Commit-Position: refs/heads/master@{#339091}

Patch Set 1 #

Total comments: 7

Patch Set 2 : review comments addressed #

Patch Set 3 : fixed ChromeOS builds #

Patch Set 4 : Fixed cros build (now for real) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -26 lines) Patch
M base/debug/task_annotator.h View 1 2 3 2 chunks +9 lines, -5 lines 0 comments Download
M base/debug/task_annotator.cc View 2 chunks +0 lines, -13 lines 0 comments Download
M base/debug/task_annotator_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M base/message_loop/message_loop.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M components/scheduler/child/task_queue_manager.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M components/timers/alarm_timer_chromeos.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (21 generated)
caseq
Dana, ptal -- this is the "plan b" that we discussed in https://codereview.chromium.org/1225333002, as the ...
5 years, 5 months ago (2015-07-15 17:35:15 UTC) #2
Sami
https://codereview.chromium.org/1237283006/diff/1/base/debug/task_annotator.cc File base/debug/task_annotator.cc (left): https://codereview.chromium.org/1237283006/diff/1/base/debug/task_annotator.cc#oldcode42 base/debug/task_annotator.cc:42: // When tracing memory for posted tasks it's more ...
5 years, 5 months ago (2015-07-15 17:44:00 UTC) #4
dsinclair
lgtm https://codereview.chromium.org/1237283006/diff/1/base/debug/task_annotator.cc File base/debug/task_annotator.cc (left): https://codereview.chromium.org/1237283006/diff/1/base/debug/task_annotator.cc#oldcode42 base/debug/task_annotator.cc:42: // When tracing memory for posted tasks it's ...
5 years, 5 months ago (2015-07-15 17:58:28 UTC) #5
danakj
https://codereview.chromium.org/1237283006/diff/1/components/scheduler/child/task_queue_manager.cc File components/scheduler/child/task_queue_manager.cc (right): https://codereview.chromium.org/1237283006/diff/1/components/scheduler/child/task_queue_manager.cc#newcode694 components/scheduler/child/task_queue_manager.cc:694: TRACE_EVENT_WITH_MEMORY_TAG2( Why don't you include WillProcessTask here? https://codereview.chromium.org/1237283006/diff/1/components/timers/alarm_timer_chromeos.cc File ...
5 years, 5 months ago (2015-07-15 18:03:23 UTC) #6
Sami
https://codereview.chromium.org/1237283006/diff/1/base/debug/task_annotator.cc File base/debug/task_annotator.cc (left): https://codereview.chromium.org/1237283006/diff/1/base/debug/task_annotator.cc#oldcode42 base/debug/task_annotator.cc:42: // When tracing memory for posted tasks it's more ...
5 years, 5 months ago (2015-07-15 18:06:52 UTC) #7
caseq
On 2015/07/15 18:03:23, danakj wrote: > https://codereview.chromium.org/1237283006/diff/1/components/scheduler/child/task_queue_manager.cc > File components/scheduler/child/task_queue_manager.cc (right): > > https://codereview.chromium.org/1237283006/diff/1/components/scheduler/child/task_queue_manager.cc#newcode694 > ...
5 years, 5 months ago (2015-07-15 19:36:38 UTC) #8
caseq
On 2015/07/15 18:06:52, Sami wrote: > Drive-by: would it work if we split this into ...
5 years, 5 months ago (2015-07-15 19:43:56 UTC) #9
Sami
On 2015/07/15 19:43:56, caseq wrote: > On 2015/07/15 18:06:52, Sami wrote: > > > Drive-by: ...
5 years, 5 months ago (2015-07-15 19:53:44 UTC) #10
danakj
https://codereview.chromium.org/1237283006/diff/1/components/scheduler/child/task_queue_manager.cc File components/scheduler/child/task_queue_manager.cc (right): https://codereview.chromium.org/1237283006/diff/1/components/scheduler/child/task_queue_manager.cc#newcode695 components/scheduler/child/task_queue_manager.cc:695: "toplevel", Then does it make sense to add these ...
5 years, 5 months ago (2015-07-16 01:01:42 UTC) #11
caseq
On 2015/07/16 01:01:42, danakj wrote: > https://codereview.chromium.org/1237283006/diff/1/components/scheduler/child/task_queue_manager.cc > File components/scheduler/child/task_queue_manager.cc (right): > > https://codereview.chromium.org/1237283006/diff/1/components/scheduler/child/task_queue_manager.cc#newcode695 > ...
5 years, 5 months ago (2015-07-16 07:40:18 UTC) #13
Sami
On 2015/07/16 07:40:18, caseq wrote: > I'm all for that, but I'm afraid this could ...
5 years, 5 months ago (2015-07-16 08:11:10 UTC) #14
caseq
On 2015/07/16 08:11:10, Sami wrote: > On 2015/07/16 07:40:18, caseq wrote: > > I'm all ...
5 years, 5 months ago (2015-07-16 13:02:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237283006/40001
5 years, 5 months ago (2015-07-16 13:02:37 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/79311)
5 years, 5 months ago (2015-07-16 13:10:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237283006/60001
5 years, 5 months ago (2015-07-16 13:53:55 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/72496) (exceeded global retry quota)
5 years, 5 months ago (2015-07-16 14:18:41 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237283006/80001
5 years, 5 months ago (2015-07-16 14:22:36 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/72509) (exceeded global retry quota)
5 years, 5 months ago (2015-07-16 14:48:06 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237283006/100001
5 years, 5 months ago (2015-07-16 15:23:44 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/72534) (exceeded global retry quota)
5 years, 5 months ago (2015-07-16 15:46:07 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237283006/120001
5 years, 5 months ago (2015-07-16 16:16:04 UTC) #41
Chirantan Ekbote
components/timers/ lgtm
5 years, 5 months ago (2015-07-16 18:08:18 UTC) #43
commit-bot: I haz the power
Committed patchset #4 (id:120001)
5 years, 5 months ago (2015-07-16 19:13:30 UTC) #44
commit-bot: I haz the power
5 years, 5 months ago (2015-07-16 19:14:36 UTC) #45
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/596ad0cca35be6b20afba297d3e8c26ae52e3ec2
Cr-Commit-Position: refs/heads/master@{#339091}

Powered by Google App Engine
This is Rietveld 408576698