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

Issue 2725633002: scheduler: Suspend timers while virtual time is paused (Closed)

Created:
3 years, 9 months ago by Sami
Modified:
3 years, 9 months ago
CC:
chromium-reviews, blink-reviews, kinuko+watch, scheduler-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

scheduler: Suspend timers while virtual time is paused When virtual time is suspended, suspend all timers from running -- even if they would be eligible to run given the current virtual time value. This allows us to deterministically schedule fetch responses w.r.t. all types of timers tasks regardless of how soon the fetch request is serviced. The downside is that the throughput of timer work is reduced depending on the number of fetches performed by a page. Design doc: https://docs.google.com/document/d/19s2g4fPP9p9qmMZvwPX8uDGbb-39rgR9k56B4B-ueG8/edit?pli=1# BUG=696001 Review-Url: https://codereview.chromium.org/2725633002 Cr-Commit-Position: refs/heads/master@{#455787} Committed: https://chromium.googlesource.com/chromium/src/+/31b966ba7c5468ada998bb46e605a4d733b69202

Patch Set 1 #

Patch Set 2 : Fix queue wakeup order bug #

Patch Set 3 : Rebased #

Patch Set 4 : Build fix #

Patch Set 5 : scheduler: Suspend timers while virtual time is paused #

Total comments: 2

Patch Set 6 : Review comments #

Patch Set 7 : Fix test failure #

Patch Set 8 : Rebased #

Messages

Total messages: 46 (36 generated)
Sami
3 years, 9 months ago (2017-03-07 14:31:25 UTC) #21
alex clarke (OOO till 29th)
lgtm https://codereview.chromium.org/2725633002/diff/80001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/2725633002/diff/80001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc#newcode1207 third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc:1207: task_queue->SetTimeDomain(real_time_domain()); Setting this redundantly is cheap. Maybe just ...
3 years, 9 months ago (2017-03-09 11:11:33 UTC) #24
Sami
Thanks! Kentaro, could you check third_party/WebKit/public/platform/WebViewScheduler.h please? https://codereview.chromium.org/2725633002/diff/80001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/2725633002/diff/80001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc#newcode1207 third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc:1207: task_queue->SetTimeDomain(real_time_domain()); On ...
3 years, 9 months ago (2017-03-09 11:25:33 UTC) #26
haraken
LGTM
3 years, 9 months ago (2017-03-09 12:19:34 UTC) #29
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/2725633002/100001
3 years, 9 months ago (2017-03-09 12:26:16 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/405664)
3 years, 9 months ago (2017-03-09 12:44:39 UTC) #35
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/2725633002/120001
3 years, 9 months ago (2017-03-09 13:41:08 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/380187)
3 years, 9 months ago (2017-03-09 14:17:58 UTC) #40
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/2725633002/140001
3 years, 9 months ago (2017-03-09 16:21:48 UTC) #43
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 17:49:20 UTC) #46
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/31b966ba7c5468ada998bb46e605...

Powered by Google App Engine
This is Rietveld 408576698