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

Issue 1468443002: Reduce the number of delayed tasks on chromium run loop (Closed)

Created:
5 years, 1 month ago by alex clarke (OOO till 29th)
Modified:
5 years, 1 month ago
Reviewers:
Sami
CC:
chromium-reviews, scheduler-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce the number of delayed tasks on chromium run loop Previously if there were N distinct delayed times for dealyed tasks posted to the scheduler, there would be N delayed tasks posted on the chromium run loop. We only really need to post timers for the next delayed task. This patch implements that. Caveat: because it's not possible to cancel tasks posted to the chromium runloop, we will still have more than one task outstanding if delayed tasks get posted in reverse order. BUG=510398, 546953 Committed: https://crrev.com/a0a01db6cee762f21b59648a6a4e0c2017b2f934 Cr-Commit-Position: refs/heads/master@{#361086}

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Fix dcheck caused by TaskQueueManagerTest.DelayedTaskWithAbsoluteRunTime #

Patch Set 4 : Added a OnRegisterWithTaskQueueManager method. #

Patch Set 5 : Whoops missed one #

Patch Set 6 : Fixed a typo #

Total comments: 2

Patch Set 7 : Weak pointer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -37 lines) Patch
M components/scheduler/base/real_time_domain.h View 1 2 3 4 5 6 3 chunks +12 lines, -4 lines 0 comments Download
M components/scheduler/base/real_time_domain.cc View 1 2 3 4 5 6 1 chunk +39 lines, -9 lines 0 comments Download
M components/scheduler/base/task_queue_impl.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M components/scheduler/base/task_queue_manager.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M components/scheduler/base/task_queue_manager_unittest.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M components/scheduler/base/time_domain.h View 1 2 3 4 5 6 4 chunks +8 lines, -2 lines 0 comments Download
M components/scheduler/base/time_domain.cc View 1 2 3 4 5 6 3 chunks +6 lines, -6 lines 0 comments Download
M components/scheduler/base/time_domain_unittest.cc View 1 2 3 5 chunks +36 lines, -5 lines 0 comments Download
M components/scheduler/base/virtual_time_domain.h View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M components/scheduler/base/virtual_time_domain.cc View 1 2 3 4 5 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1468443002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1468443002/20001
5 years, 1 month ago (2015-11-20 12:05:58 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/131878)
5 years, 1 month ago (2015-11-20 12:32:50 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1468443002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1468443002/40001
5 years, 1 month ago (2015-11-20 15:11:14 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-20 16:11:21 UTC) #13
Sami
To summarize our discussion: Let's give registered TimeDomains access to the TQM delegate and the ...
5 years, 1 month ago (2015-11-20 17:58:53 UTC) #14
alex clarke (OOO till 29th)
On 2015/11/20 17:58:53, Sami wrote: > To summarize our discussion: Let's give registered TimeDomains access ...
5 years, 1 month ago (2015-11-20 18:20:29 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1468443002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1468443002/60001
5 years, 1 month ago (2015-11-20 18:21:30 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1468443002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1468443002/80001
5 years, 1 month ago (2015-11-20 18:23:23 UTC) #20
Sami
lgtm % weakpointerification. https://codereview.chromium.org/1468443002/diff/100001/components/scheduler/base/real_time_domain.cc File components/scheduler/base/real_time_domain.cc (right): https://codereview.chromium.org/1468443002/diff/100001/components/scheduler/base/real_time_domain.cc#newcode55 components/scheduler/base/real_time_domain.cc:55: base::Bind(&RealTimeDomain::WrappedDoWorkTask, this, run_time), I think this ...
5 years, 1 month ago (2015-11-20 19:20:00 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-20 19:46:38 UTC) #23
alex clarke (OOO till 29th)
https://codereview.chromium.org/1468443002/diff/100001/components/scheduler/base/real_time_domain.cc File components/scheduler/base/real_time_domain.cc (right): https://codereview.chromium.org/1468443002/diff/100001/components/scheduler/base/real_time_domain.cc#newcode55 components/scheduler/base/real_time_domain.cc:55: base::Bind(&RealTimeDomain::WrappedDoWorkTask, this, run_time), On 2015/11/20 19:20:00, Sami wrote: > ...
5 years, 1 month ago (2015-11-23 10:11:51 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1468443002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1468443002/120001
5 years, 1 month ago (2015-11-23 10:12:10 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-23 11:10:35 UTC) #28
commit-bot: I haz the power
5 years, 1 month ago (2015-11-23 11:11:30 UTC) #29
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a0a01db6cee762f21b59648a6a4e0c2017b2f934
Cr-Commit-Position: refs/heads/master@{#361086}

Powered by Google App Engine
This is Rietveld 408576698