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

Issue 2416803003: Record PendingTaskCount when a backgrounded renderer is suspended. (Closed)

Created:
4 years, 2 months ago by tasak
Modified:
4 years, 2 months ago
Reviewers:
haraken, Sami
CC:
chromium-reviews, blink-reviews, dglazkov+blink, scheduler-bugs_chromium.org, blink-reviews-api_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Record PendingTaskCount when a backgrounded renderer is suspended. To understand PurgeAndSuspend, we need to see how many tasks are still in task_queues when a backgrounded renderer is suspended. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit?usp=sharing - The feature is not enabled by default because purge-and-suspend-time is 0. BUG=635419 Committed: https://crrev.com/a3ed913e99d2d9acf6413ae56e1c8d1da4382522 Cr-Commit-Position: refs/heads/master@{#425627}

Patch Set 1 #

Patch Set 2 : Add unittest #

Total comments: 6

Patch Set 3 : Add GetNumberOfPendingTasks to TaskQueueManager #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -0 lines) Patch
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/scheduler_helper_unittest.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/scheduler/base/task_queue.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
tasak
Would you review this CL? According to the meeting, I created this patch to add ...
4 years, 2 months ago (2016-10-13 11:04:15 UTC) #8
Sami
Thanks, this will be interesting to know. https://codereview.chromium.org/2416803003/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h File third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h (right): https://codereview.chromium.org/2416803003/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h#newcode124 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h:124: unsigned GetNumberOfPendingTasks() ...
4 years, 2 months ago (2016-10-14 01:38:18 UTC) #11
tasak
Thank you for review. So is it better to test GetNumberOfPendingTasks in RendererSchedulerImplTest or SchedulerHelperTest? ...
4 years, 2 months ago (2016-10-14 05:55:32 UTC) #12
Sami
On 2016/10/14 05:55:32, tasak wrote: > Thank you for review. > > So is it ...
4 years, 2 months ago (2016-10-14 06:30:05 UTC) #13
haraken
LGTM
4 years, 2 months ago (2016-10-14 06:45:33 UTC) #14
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/2416803003/40001
4 years, 2 months ago (2016-10-17 05:56:27 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-17 07:21:25 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 07:23:31 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a3ed913e99d2d9acf6413ae56e1c8d1da4382522
Cr-Commit-Position: refs/heads/master@{#425627}

Powered by Google App Engine
This is Rietveld 408576698