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

Issue 2471153002: [scheduler] Use Finch to control background throttling. (Closed)

Created:
4 years, 1 month ago by altimin
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, kinuko+watch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, ojan, scheduler-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[scheduler] Use Finch to control background throttling. BUG=639852 Committed: https://crrev.com/56bb594b1b341695c09b9041cdf02a76af306cc3 Cr-Commit-Position: refs/heads/master@{#431013}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Addressed comments from alexclarke@ #

Total comments: 10

Patch Set 3 : Address comments from skyostil@ #

Patch Set 4 : Rebased #

Total comments: 6

Patch Set 5 : Address skyostil@'s comments #

Total comments: 12

Patch Set 6 : Address nits from skyostil@ #

Total comments: 11

Patch Set 7 : Address nits #

Patch Set 8 : Rebased #

Patch Set 9 : Fix test and address comments #

Patch Set 10 : Fix test and address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -65 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 4 chunks +33 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/web_scheduler_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/web_scheduler_impl.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.cc View 1 2 3 4 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc View 1 2 3 4 5 6 7 8 10 chunks +20 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.cc View 1 2 3 4 5 6 7 3 chunks +76 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl_unittest.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 3 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 2 3 4 2 chunks +24 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 2 chunks +17 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebScheduler.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebViewScheduler.h View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (29 generated)
altimin
4 years, 1 month ago (2016-11-02 15:54:35 UTC) #3
alex clarke (OOO till 29th)
https://codereview.chromium.org/2471153002/diff/1/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/2471153002/diff/1/content/browser/renderer_host/render_view_host_impl.cc#newcode421 content/browser/renderer_host/render_view_host_impl.cc:421: const std::map<std::string, std::string>& settings, Are you aware of base::DictionaryValue? ...
4 years, 1 month ago (2016-11-02 17:53:49 UTC) #8
altimin
PTAL +jochen@ for content/ and blink changes +mkwst@ for IPC changes. https://codereview.chromium.org/2471153002/diff/1/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): ...
4 years, 1 month ago (2016-11-02 21:10:02 UTC) #10
jochen (gone - plz use gerrit)
I'll wait for alexclarke@ and skyostil@ to finish their reviews first
4 years, 1 month ago (2016-11-03 11:56:58 UTC) #11
Sami
https://codereview.chromium.org/2471153002/diff/20001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/2471153002/diff/20001/content/browser/renderer_host/render_view_host_impl.cc#newcode420 content/browser/renderer_host/render_view_host_impl.cc:420: void MaybeSetParameterFromMap( MaybeSetFloat/DoubleParameterFromMap? https://codereview.chromium.org/2471153002/diff/20001/content/public/common/web_preferences.cc File content/public/common/web_preferences.cc (right): https://codereview.chromium.org/2471153002/diff/20001/content/public/common/web_preferences.cc#newcode185 content/public/common/web_preferences.cc:185: ...
4 years, 1 month ago (2016-11-03 13:21:15 UTC) #12
alex clarke (OOO till 29th)
https://codereview.chromium.org/2471153002/diff/1/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/2471153002/diff/1/content/browser/renderer_host/render_view_host_impl.cc#newcode421 content/browser/renderer_host/render_view_host_impl.cc:421: const std::map<std::string, std::string>& settings, On 2016/11/02 21:10:01, altimin wrote: ...
4 years, 1 month ago (2016-11-03 15:10:06 UTC) #13
altimin
PTAL https://codereview.chromium.org/2471153002/diff/20001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/2471153002/diff/20001/content/browser/renderer_host/render_view_host_impl.cc#newcode420 content/browser/renderer_host/render_view_host_impl.cc:420: void MaybeSetParameterFromMap( On 2016/11/03 13:21:15, Sami wrote: > ...
4 years, 1 month ago (2016-11-04 10:41:25 UTC) #14
Sami
https://codereview.chromium.org/2471153002/diff/60001/content/public/common/web_preferences.cc File content/public/common/web_preferences.cc (right): https://codereview.chromium.org/2471153002/diff/60001/content/public/common/web_preferences.cc#newcode184 content/public/common/web_preferences.cc:184: expensive_background_throttling_cpu_budget(-1.0f), Agreed offline that we'll try to find a ...
4 years, 1 month ago (2016-11-04 16:50:28 UTC) #20
altimin
PTAL https://codereview.chromium.org/2471153002/diff/60001/content/public/common/web_preferences.cc File content/public/common/web_preferences.cc (right): https://codereview.chromium.org/2471153002/diff/60001/content/public/common/web_preferences.cc#newcode184 content/public/common/web_preferences.cc:184: expensive_background_throttling_cpu_budget(-1.0f), On 2016/11/04 16:50:28, Sami wrote: > Agreed ...
4 years, 1 month ago (2016-11-07 15:19:49 UTC) #21
Sami
Thanks, I think the plumbing looks good now. third_party/WebKit/Source/platform/scheduler/ lgtm with a handful of nits. ...
4 years, 1 month ago (2016-11-07 16:33:42 UTC) #22
altimin
PTAL Given that jochen@ is out, +clamy@ for content +foolip@ for blink https://codereview.chromium.org/2471153002/diff/80001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.h File third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.h ...
4 years, 1 month ago (2016-11-07 17:01:33 UTC) #23
altimin
+clamy@ for content +foolip@ for blink
4 years, 1 month ago (2016-11-07 17:02:07 UTC) #25
Sami
https://codereview.chromium.org/2471153002/diff/80001/third_party/WebKit/public/platform/WebViewScheduler.h File third_party/WebKit/public/platform/WebViewScheduler.h (right): https://codereview.chromium.org/2471153002/diff/80001/third_party/WebKit/public/platform/WebViewScheduler.h#newcode20 third_party/WebKit/public/platform/WebViewScheduler.h:20: class BLINK_PLATFORM_EXPORT WebViewSchedulerSettings { On 2016/11/07 17:01:33, altimin wrote: ...
4 years, 1 month ago (2016-11-07 17:08:35 UTC) #26
altimin
https://codereview.chromium.org/2471153002/diff/80001/third_party/WebKit/public/platform/WebViewScheduler.h File third_party/WebKit/public/platform/WebViewScheduler.h (right): https://codereview.chromium.org/2471153002/diff/80001/third_party/WebKit/public/platform/WebViewScheduler.h#newcode20 third_party/WebKit/public/platform/WebViewScheduler.h:20: class BLINK_PLATFORM_EXPORT WebViewSchedulerSettings { On 2016/11/07 17:08:34, Sami wrote: ...
4 years, 1 month ago (2016-11-07 17:10:29 UTC) #27
Sami
On 2016/11/07 17:10:29, altimin wrote: > My understanding is that Settings inside WebViewScheduler will start ...
4 years, 1 month ago (2016-11-07 17:25:30 UTC) #28
ojan
https://codereview.chromium.org/2471153002/diff/100001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/2471153002/diff/100001/content/browser/renderer_host/render_view_host_impl.cc#newcode420 content/browser/renderer_host/render_view_host_impl.cc:420: void MaybeSetFloatParameterFromMap( Drive-by pet-peeve nit: I don't feel like ...
4 years, 1 month ago (2016-11-08 19:41:16 UTC) #30
foolip
third_party/WebKit/ LGTM outside of third_party/WebKit/Source/platform/scheduler/, where I didn't look but skyostil@ did. https://codereview.chromium.org/2471153002/diff/100001/third_party/WebKit/public/platform/WebScheduler.h File third_party/WebKit/public/platform/WebScheduler.h ...
4 years, 1 month ago (2016-11-09 11:08:18 UTC) #31
clamy
Thanks! A few comments below. https://codereview.chromium.org/2471153002/diff/100001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/2471153002/diff/100001/content/browser/renderer_host/render_view_host_impl.cc#newcode595 content/browser/renderer_host/render_view_host_impl.cc:595: variations::GetVariationParamsByFeature( We've tried to ...
4 years, 1 month ago (2016-11-09 14:28:51 UTC) #32
altimin
PTAL https://codereview.chromium.org/2471153002/diff/100001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/2471153002/diff/100001/content/browser/renderer_host/render_view_host_impl.cc#newcode420 content/browser/renderer_host/render_view_host_impl.cc:420: void MaybeSetFloatParameterFromMap( On 2016/11/08 19:41:15, ojan wrote: > ...
4 years, 1 month ago (2016-11-09 14:46:30 UTC) #35
clamy
Thanks! One more comment below and this should be good. https://codereview.chromium.org/2471153002/diff/100001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/2471153002/diff/100001/content/browser/renderer_host/render_view_host_impl.cc#newcode595 ...
4 years, 1 month ago (2016-11-09 15:27:07 UTC) #38
altimin
PTAL https://codereview.chromium.org/2471153002/diff/100001/content/public/common/web_preferences.h File content/public/common/web_preferences.h (right): https://codereview.chromium.org/2471153002/diff/100001/content/public/common/web_preferences.h#newcode214 content/public/common/web_preferences.h:214: // CPU budget is given in percentages, other ...
4 years, 1 month ago (2016-11-09 15:31:28 UTC) #39
Mike West
Adding members to the IPC's struct LGTM.
4 years, 1 month ago (2016-11-09 15:36:23 UTC) #42
clamy
Thanks! Lgtm.
4 years, 1 month ago (2016-11-09 15:38:49 UTC) #43
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/2471153002/180001
4 years, 1 month ago (2016-11-09 18:15:45 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/300537)
4 years, 1 month ago (2016-11-09 18:24:17 UTC) #50
altimin
+asvitkine@ could you please approve dependency on components/variations?
4 years, 1 month ago (2016-11-09 19:17:51 UTC) #52
Alexei Svitkine (slow)
lgtm if content owners are ok with the dependency
4 years, 1 month ago (2016-11-09 19:24:38 UTC) #53
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/2471153002/180001
4 years, 1 month ago (2016-11-09 19:38:41 UTC) #55
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 1 month ago (2016-11-09 19:45:46 UTC) #57
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 19:59:12 UTC) #59
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/56bb594b1b341695c09b9041cdf02a76af306cc3
Cr-Commit-Position: refs/heads/master@{#431013}

Powered by Google App Engine
This is Rietveld 408576698