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
Would you review this CL?
According to the meeting, I created this patch to add UMA (i.e. number of
pending task) to RendererSchedulerImpl::SuspendRenderer.
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
4 years, 2 months ago
(2016-10-13 12:17:28 UTC)
#9
4 years, 2 months ago
(2016-10-13 12:17:29 UTC)
#10
Dry run: This issue passed the CQ dry run.
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
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
Thank you for review.
So is it better to test GetNumberOfPendingTasks in RendererSchedulerImplTest or
SchedulerHelperTest?
Talking about the newest patch, I tried to added the test into
SchedulerHelperTest.
https://codereview.chromium.org/2416803003/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h
(right):
https://codereview.chromium.org/2416803003/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h:124:
unsigned GetNumberOfPendingTasks() const override;
On 2016/10/14 01:38:18, Sami (slow -- traveling) wrote:
> nit: Please use size_t instead of unsigned types.
Done.
https://codereview.chromium.org/2416803003/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/platform/scheduler/child/idle_helper.h (right):
https://codereview.chromium.org/2416803003/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/platform/scheduler/child/idle_helper.h:146: int
GetNumberOfPendingIdleTasks();
On 2016/10/14 01:38:18, Sami (slow -- traveling) wrote:
> size_t
I agree.
...so I found that we don't need this method. Because I added
GetNumberOfPendingTasks to TaskQueueManager (and also SchedulerHelper).
https://codereview.chromium.org/2416803003/diff/20001/third_party/WebKit/Sour...
File
third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc
(right):
https://codereview.chromium.org/2416803003/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc:503:
int RendererSchedulerImpl::GetNumberOfPendingTasks() {
On 2016/10/14 01:38:18, Sami (slow -- traveling) wrote:
> I would suggest adding this getter into TaskQueueManager instead so it can
just
> iterate over |queues_| there. Otherwise it is easy to forget to add a queue
here
> when we introduce new ones.
I see. I agree that TaskQueueManager is the best class to add the getter.
Done.
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
On 2016/10/14 05:55:32, tasak wrote:
> Thank you for review.
>
> So is it better to test GetNumberOfPendingTasks in RendererSchedulerImplTest
or
> SchedulerHelperTest?
I would probably move the test to TaskQueueManagerTest.
With that change this lgtm.
haraken
LGTM
4 years, 2 months ago
(2016-10-14 06:45:33 UTC)
#14
LGTM
tasak
The CQ bit was checked by tasak@google.com
4 years, 2 months ago
(2016-10-17 05:56:08 UTC)
#15
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: Sami, haraken
Base URL:
Comments: 6