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

Issue 2890173002: EQT: Record the max queueing time from navigation start to navigation away (Closed)

Created:
3 years, 7 months ago by Liquan (Max) Gu
Modified:
3 years, 6 months ago
CC:
chromium-reviews, blink-reviews, kinuko+watch, scheduler-bugs_chromium.org, asvitkine+watch_chromium.org, nasko, clamy, alex clarke (OOO till 29th)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

EQT: Record the max queueing time from navigation start to navigation away We want to record the maximum EQT in an N ms sliding window between TTI and when the user navigates away, yet TTI is not landed yet, so this CL will measure the max EQT from navigation start to navigation away as a first step. BUG=710449 Review-Url: https://codereview.chromium.org/2890173002 Cr-Commit-Position: refs/heads/master@{#477289} Committed: https://chromium.googlesource.com/chromium/src/+/206f88a3c6df64c70511446235ed6ff72a94ce9e

Patch Set 1 #

Patch Set 2 : add DEP #

Total comments: 10

Patch Set 3 : record max; flush hist; #

Total comments: 6

Patch Set 4 : flush hist in OnCommitProvitionalLoad #

Total comments: 9

Patch Set 5 : rebase #

Patch Set 6 : add a single thread and multi-thread test #

Total comments: 14

Patch Set 7 : test cover the max; test cover during nav #

Total comments: 4

Patch Set 8 : nit: GetOrCreate to Create #

Patch Set 9 : rebase #

Patch Set 10 : fix duplicate creations of the metric #

Patch Set 11 : DEPS adjust #

Total comments: 10

Patch Set 12 : comments and todo #

Patch Set 13 : fix test nits #

Patch Set 14 : fix mock_renderer_scheduler #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -0 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h View 1 2 3 4 5 6 7 8 4 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +46 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/test/fake_renderer_scheduler.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/scheduler/test/fake_renderer_scheduler.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/scheduler/test/mock_renderer_scheduler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 79 (34 generated)
tdresser
We've historically been pretty bad about testing histograms, but we're trying to get better. Use ...
3 years, 7 months ago (2017-05-18 20:42:26 UTC) #5
Liquan (Max) Gu
I have experiemented on resetting the single sample histogram on ResetForNavigationLocked()/OnNavigationStarted(). I found that each ...
3 years, 7 months ago (2017-05-19 22:24:27 UTC) #6
tdresser
+creis@, any thoughts on what signal we should be using for a page navigation starting? ...
3 years, 7 months ago (2017-05-23 14:57:52 UTC) #7
Charlie Reis
On 2017/05/23 14:57:52, tdresser wrote: > +creis@, any thoughts on what signal we should be ...
3 years, 7 months ago (2017-05-23 19:09:34 UTC) #9
tdresser
+Sami as FYI that RendererSchedulerImpl is pretty broken.
3 years, 7 months ago (2017-05-23 19:33:38 UTC) #10
tdresser
On 2017/05/23 19:33:38, tdresser wrote: > +Sami as FYI that RendererSchedulerImpl is pretty broken. Following ...
3 years, 7 months ago (2017-05-23 19:41:07 UTC) #11
Sami
On 2017/05/23 19:09:34, Charlie Reis wrote: > Just from a quick glance at the call ...
3 years, 7 months ago (2017-05-24 17:24:27 UTC) #12
Charlie Reis
Sorry for the delay! Meetings yesterday and stability sheriffing today kept me busy. On 2017/05/24 ...
3 years, 7 months ago (2017-05-25 02:03:00 UTC) #13
Sami
On 2017/05/25 02:03:00, Charlie Reis (overloaded) wrote: > Sure. When you say "starts loading" here, ...
3 years, 7 months ago (2017-05-25 15:04:53 UTC) #14
Liquan (Max) Gu
Thanks for Saml, Charlie, and Tim. I use OnCommitProvisionalLoad as navigation start now. I've done ...
3 years, 7 months ago (2017-05-25 16:27:29 UTC) #15
Liquan (Max) Gu
https://codereview.chromium.org/2890173002/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2890173002/diff/60001/content/renderer/render_frame_impl.cc#newcode3824 content/renderer/render_frame_impl.cc:3824: render_thread_impl->GetRendererScheduler()->OnCommitProvisionalLoad(); Do you think we should combine the part ...
3 years, 7 months ago (2017-05-25 16:34:40 UTC) #16
tdresser
This is starting to look pretty reasonable. Does this work in manual testing, including when ...
3 years, 7 months ago (2017-05-25 19:43:39 UTC) #17
Liquan (Max) Gu
https://codereview.chromium.org/2890173002/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2890173002/diff/60001/content/renderer/render_frame_impl.cc#newcode3824 content/renderer/render_frame_impl.cc:3824: render_thread_impl->GetRendererScheduler()->OnCommitProvisionalLoad(); On 2017/05/25 19:43:38, tdresser wrote: > On 2017/05/25 ...
3 years, 6 months ago (2017-05-29 23:44:11 UTC) #19
tdresser
+skyostil for scheduler review. Looks great, thanks. Let's expand the test coverage a bit - ...
3 years, 6 months ago (2017-05-30 13:34:45 UTC) #21
tdresser
https://codereview.chromium.org/2890173002/diff/120001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/2890173002/diff/120001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc#newcode1649 third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc:1649: RendererSchedulerImpl::GetMaxQueueingTimeMetric() { GetOrCreate
3 years, 6 months ago (2017-05-30 15:44:42 UTC) #22
Liquan (Max) Gu
https://codereview.chromium.org/2890173002/diff/120001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/2890173002/diff/120001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc#newcode1637 third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc:1637: // Initialize |max_queueing_time_metric| as we need it so that ...
3 years, 6 months ago (2017-05-30 19:57:20 UTC) #23
Sami
https://codereview.chromium.org/2890173002/diff/140001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/2890173002/diff/140001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc#newcode1651 third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc:1651: return base::SingleSampleMetricsFactory::Get()->CreateCustomCountsMetric( Based on the method name I would ...
3 years, 6 months ago (2017-05-31 10:30:34 UTC) #24
Liquan (Max) Gu
https://codereview.chromium.org/2890173002/diff/140001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/2890173002/diff/140001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc#newcode1651 third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc:1651: return base::SingleSampleMetricsFactory::Get()->CreateCustomCountsMetric( On 2017/05/31 10:30:34, Sami wrote: > Based ...
3 years, 6 months ago (2017-06-01 14:39:39 UTC) #25
Sami
https://codereview.chromium.org/2890173002/diff/140001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/2890173002/diff/140001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc#newcode1651 third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc:1651: return base::SingleSampleMetricsFactory::Get()->CreateCustomCountsMetric( On 2017/06/01 14:39:39, Liquan (Max) Gu wrote: ...
3 years, 6 months ago (2017-06-01 18:29:40 UTC) #26
Liquan (Max) Gu
https://codereview.chromium.org/2890173002/diff/140001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc File third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/2890173002/diff/140001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc#newcode1651 third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc:1651: return base::SingleSampleMetricsFactory::Get()->CreateCustomCountsMetric( On 2017/06/01 18:29:40, Sami wrote: > On ...
3 years, 6 months ago (2017-06-01 18:36:05 UTC) #27
Sami
Thanks, lgtm.
3 years, 6 months ago (2017-06-02 10:04:47 UTC) #28
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/2890173002/160001
3 years, 6 months ago (2017-06-02 14:15:36 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/109372) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-02 14:18:27 UTC) #32
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/2890173002/180001
3 years, 6 months ago (2017-06-02 17:22:05 UTC) #35
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/454575)
3 years, 6 months ago (2017-06-02 17:30:01 UTC) #37
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/2890173002/200001
3 years, 6 months ago (2017-06-02 17:52:19 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/433490)
3 years, 6 months ago (2017-06-02 17:59:43 UTC) #42
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/2890173002/220001
3 years, 6 months ago (2017-06-02 20:22:34 UTC) #45
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/454815)
3 years, 6 months ago (2017-06-02 20:32:40 UTC) #47
Liquan (Max) Gu
Hi Jesse, Camille, here are two files that requires Owner's approval. Could you please take ...
3 years, 6 months ago (2017-06-02 22:12:41 UTC) #49
Charlie Reis
Sorry, I stopped watching closely after the earlier questions about navigation start. I'm a content/ ...
3 years, 6 months ago (2017-06-02 22:38:37 UTC) #50
Liquan (Max) Gu
https://codereview.chromium.org/2890173002/diff/220001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2890173002/diff/220001/content/renderer/render_frame_impl.cc#newcode3663 content/renderer/render_frame_impl.cc:3663: render_thread_impl->GetRendererScheduler()->OnCommitProvisionalLoad(); On 2017/06/02 22:38:36, Charlie Reis wrote: > Why ...
3 years, 6 months ago (2017-06-02 23:32:06 UTC) #51
Charlie Reis
Hope the comments below clarify what I meant-- thanks. https://codereview.chromium.org/2890173002/diff/220001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2890173002/diff/220001/content/renderer/render_frame_impl.cc#newcode3663 content/renderer/render_frame_impl.cc:3663: ...
3 years, 6 months ago (2017-06-05 05:02:34 UTC) #52
Sami
On 2017/06/05 05:02:34, Charlie Reis wrote: > No, sorry, I think that's more confusing. > ...
3 years, 6 months ago (2017-06-05 12:51:38 UTC) #53
tdresser
LGTM https://codereview.chromium.org/2890173002/diff/240001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc File third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/2890173002/diff/240001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc#newcode3969 third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc:3969: // Navigation start Add trailing period.
3 years, 6 months ago (2017-06-05 15:54:46 UTC) #54
Liquan (Max) Gu
On 2017/06/05 15:54:46, tdresser wrote: > LGTM > > https://codereview.chromium.org/2890173002/diff/240001/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc > File > third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc > ...
3 years, 6 months ago (2017-06-05 16:15:23 UTC) #57
Liquan (Max) Gu
https://codereview.chromium.org/2890173002/diff/220001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2890173002/diff/220001/content/renderer/render_frame_impl.cc#newcode3663 content/renderer/render_frame_impl.cc:3663: render_thread_impl->GetRendererScheduler()->OnCommitProvisionalLoad(); On 2017/06/05 05:02:34, Charlie Reis wrote: > On ...
3 years, 6 months ago (2017-06-05 16:15:56 UTC) #58
Charlie Reis
Thanks! LGTM.
3 years, 6 months ago (2017-06-05 17:26:32 UTC) #59
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/2890173002/300001
3 years, 6 months ago (2017-06-05 17:28:19 UTC) #62
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/455670)
3 years, 6 months ago (2017-06-05 17:37:43 UTC) #64
jwd
metrics lgtm
3 years, 6 months ago (2017-06-05 19:19:28 UTC) #65
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/2890173002/300001
3 years, 6 months ago (2017-06-05 19:21:01 UTC) #67
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/382720)
3 years, 6 months ago (2017-06-05 19:32:17 UTC) #69
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/2890173002/320001
3 years, 6 months ago (2017-06-06 14:21:56 UTC) #76
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 15:14:25 UTC) #79
Message was sent while issue was closed.
Committed patchset #14 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/206f88a3c6df64c70511446235ed...

Powered by Google App Engine
This is Rietveld 408576698