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

Issue 2523673003: [scheduler] Fix bug in task queue throttler (Closed)

Created:
4 years, 1 month ago by altimin
Modified:
4 years ago
Reviewers:
Sami
CC:
chromium-reviews, blink-reviews, scheduler-bugs_chromium.org, alex clarke (OOO till 29th)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[scheduler] Account for disabling throttling in TaskQueueThrottler::IsThrottled TaskQueueThrottler::IsThrottled didn't respect global on/off throttling switch. This led to TaskQueueThrottler::TimeBudgetPool::EnableThrottling permanently disabling some queues. R=skyostil@chromium.org CC=alexclarke@chromium.org BUG=639852 Committed: https://crrev.com/8991961c94284b66c45ef222bdd3f787327a3c81 Cr-Commit-Position: refs/heads/master@{#434195}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address Sami's comments #

Patch Set 3 : Deleted Metadata::IsThrottled #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -18 lines) Patch
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc View 1 2 10 chunks +17 lines, -16 lines 3 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc View 1 2 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
altimin
PTAL
4 years, 1 month ago (2016-11-22 18:53:03 UTC) #1
altimin
PTAL
4 years, 1 month ago (2016-11-22 18:55:45 UTC) #2
Sami
https://codereview.chromium.org/2523673003/diff/1/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/2523673003/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode336 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:336: std::make_pair(task_queue, Metadata(0, task_queue->IsQueueEnabled()))); 0 /* ref_count */ (I had ...
4 years, 1 month ago (2016-11-22 19:27:35 UTC) #3
Sami
(Also see Primiano's recent email about commit messages :)
4 years, 1 month ago (2016-11-22 19:28:23 UTC) #4
altimin
PTAL https://codereview.chromium.org/2523673003/diff/1/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/2523673003/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode336 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:336: std::make_pair(task_queue, Metadata(0, task_queue->IsQueueEnabled()))); On 2016/11/22 19:27:35, Sami wrote: ...
4 years ago (2016-11-23 11:11:29 UTC) #6
Sami
Thanks! https://codereview.chromium.org/2523673003/diff/1/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/2523673003/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode381 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:381: if (!allow_throttling_) On 2016/11/23 11:11:29, altimin wrote: > ...
4 years ago (2016-11-23 11:52:06 UTC) #7
altimin
PTAL https://codereview.chromium.org/2523673003/diff/1/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/2523673003/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode381 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:381: if (!allow_throttling_) On 2016/11/23 11:52:06, Sami wrote: > ...
4 years ago (2016-11-23 14:29:17 UTC) #8
Sami
Looks like a good improvement! https://codereview.chromium.org/2523673003/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/2523673003/diff/40001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode298 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:298: if (IsThrottled(task_queue)) { Hmm, ...
4 years ago (2016-11-23 16:47:18 UTC) #11
altimin
https://codereview.chromium.org/2523673003/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/2523673003/diff/40001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode298 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:298: if (IsThrottled(task_queue)) { On 2016/11/23 16:47:18, Sami wrote: > ...
4 years ago (2016-11-23 16:56:08 UTC) #12
Sami
lgtm! https://codereview.chromium.org/2523673003/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/2523673003/diff/40001/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc#newcode298 third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:298: if (IsThrottled(task_queue)) { On 2016/11/23 16:56:08, altimin wrote: ...
4 years ago (2016-11-23 17:00:59 UTC) #13
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/2523673003/40001
4 years ago (2016-11-23 17:06:53 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-23 17:23:14 UTC) #19
commit-bot: I haz the power
4 years ago (2016-11-23 17:25:52 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8991961c94284b66c45ef222bdd3f787327a3c81
Cr-Commit-Position: refs/heads/master@{#434195}

Powered by Google App Engine
This is Rietveld 408576698