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

Issue 2412323003: [scheduler] Support setting maximal throttling duration (Closed)

Created:
4 years, 2 months ago by altimin
Modified:
4 years, 2 months ago
CC:
ojan, blink-reviews, chromium-reviews, scheduler-bugs_chromium.org, tasak
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[scheduler] Support setting maximal throttling duration This patch adds support of maximal throttling duration to Time Budget API and makes both maximal throttling duration and maximal budget level optional. Maximal throttling duration is enforced by setting a lower bound on budget level, making sure that we will not throttle a queue for more than 1 minute. R=alexclarke@chromium.org,skyostil@chromium.org CC=ojan@chromium.org BUG=639852 Committed: https://crrev.com/19cf23b8ffe72e4d1d069e4bdf4a996be67285c8 Cr-Commit-Position: refs/heads/master@{#425938}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments from skyostil@ #

Total comments: 6

Patch Set 3 : Addressed comments from alexclarke@ #

Total comments: 6

Patch Set 4 : Addressed nits from alexclarke@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -18 lines) Patch
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h View 1 2 3 4 chunks +25 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc View 1 2 3 9 chunks +39 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc View 3 chunks +34 lines, -4 lines 0 comments Download

Messages

Total messages: 34 (20 generated)
altimin
PTAL
4 years, 2 months ago (2016-10-13 17:30:22 UTC) #2
Sami
I may have missed the thread about this but IIRC we decided not to have ...
4 years, 2 months ago (2016-10-14 00:29:42 UTC) #7
Sami
https://codereview.chromium.org/2412323003/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h File third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h (right): https://codereview.chromium.org/2412323003/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h#newcode126 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h:126: // is allowed to run for after a very ...
4 years, 2 months ago (2016-10-14 00:33:02 UTC) #8
altimin
On 2016/10/14 00:29:42, Sami (OoO 0x1F1EF 0x1F1F5) wrote: > I may have missed the thread ...
4 years, 2 months ago (2016-10-14 16:18:39 UTC) #9
altimin
https://codereview.chromium.org/2412323003/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h File third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h (right): https://codereview.chromium.org/2412323003/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h#newcode126 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h:126: // is allowed to run for after a very ...
4 years, 2 months ago (2016-10-14 16:18:55 UTC) #10
alex clarke (OOO till 29th)
https://codereview.chromium.org/2412323003/diff/20001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc File third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc (right): https://codereview.chromium.org/2412323003/diff/20001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode185 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:185: Advance(end_time); Maybe DCHECK_LE(start_time, end_time); https://codereview.chromium.org/2412323003/diff/20001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode243 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:243: void TaskQueueThrottler::TimeBudgetPool::EnforceMaximalThrottlingDuration() { ...
4 years, 2 months ago (2016-10-14 16:37:22 UTC) #12
haraken
On 2016/10/14 16:18:39, altimin wrote: > On 2016/10/14 00:29:42, Sami (OoO 0x1F1EF 0x1F1F5) wrote: > ...
4 years, 2 months ago (2016-10-15 02:09:08 UTC) #13
ojan
IMO, having this as a value we can control via finch increases the likelihood we ...
4 years, 2 months ago (2016-10-15 03:03:55 UTC) #15
altimin
PTAL https://codereview.chromium.org/2412323003/diff/20001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc File third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc (right): https://codereview.chromium.org/2412323003/diff/20001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode185 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:185: Advance(end_time); On 2016/10/14 16:37:22, alex clarke wrote: > ...
4 years, 2 months ago (2016-10-17 10:48:37 UTC) #16
alex clarke (OOO till 29th)
LGTM % nits https://codereview.chromium.org/2412323003/diff/40001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc File third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc (right): https://codereview.chromium.org/2412323003/diff/40001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode261 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:261: max_throttling_duration_(kMaxThrottlingDuration), Add a TODO to optionally ...
4 years, 2 months ago (2016-10-17 14:55:55 UTC) #21
altimin
https://codereview.chromium.org/2412323003/diff/40001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc File third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc (right): https://codereview.chromium.org/2412323003/diff/40001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode261 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:261: max_throttling_duration_(kMaxThrottlingDuration), On 2016/10/17 14:55:55, alex clarke wrote: > Add ...
4 years, 2 months ago (2016-10-18 09:53:55 UTC) #25
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/2412323003/60001
4 years, 2 months ago (2016-10-18 10:16:26 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-18 10:20:53 UTC) #32
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 10:23:11 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/19cf23b8ffe72e4d1d069e4bdf4a996be67285c8
Cr-Commit-Position: refs/heads/master@{#425938}

Powered by Google App Engine
This is Rietveld 408576698