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

Issue 2624283004: Associate a main resource request with its PageLoadTracker. (Closed)

Created:
3 years, 11 months ago by Bryan McQuade
Modified:
3 years, 11 months ago
CC:
chromium-reviews, csharrison+watch_chromium.org, loading-reviews_chromium.org, loading-reviews+metrics_chromium.org, Randy Smith (Not in Mondays)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Associate a main resource request with its PageLoadTracker. A main resource request may complete either before or after commit. For example, if the main resource response fits in a single TCP window, it will likely complete before commit, whereas if the response is large, it will likely complete after commit. This change special cases main resource PageLoadTracker attribution, by finding the provisional load or committed load with a GlobalRequestID that matches the given URLRequest. See https://docs.google.com/document/d/1dZP0si0IKEMeVKGsohJ3fFWiKqh3nZBtuTFVkAPSXYM/edit for more details. BUG=680983 Review-Url: https://codereview.chromium.org/2624283004 Cr-Commit-Position: refs/heads/master@{#444159} Committed: https://chromium.googlesource.com/chromium/src/+/67906e1cd7937494e078325ead8bdb95093bbf29

Patch Set 1 #

Patch Set 2 : Remove unrelated change. #

Patch Set 3 : misc cleanup #

Patch Set 4 : Switch to using GlobalRequestID #

Patch Set 5 : switch to ReadyToCommitNavigation #

Patch Set 6 : small updates #

Patch Set 7 : fix comment #

Patch Set 8 : add browser side nav check #

Patch Set 9 : fix whitespace #

Patch Set 10 : fix dchecks #

Patch Set 11 : remove browser side checks #

Patch Set 12 : restore browser side nav check #

Patch Set 13 : restore browser side nav check #

Patch Set 14 : clean up browser side nav check #

Patch Set 15 : comment cleanup #

Total comments: 15

Patch Set 16 : add basic browser test #

Patch Set 17 : switch to WillProcessResponse flow #

Patch Set 18 : add test #

Patch Set 19 : address comments #

Total comments: 4

Patch Set 20 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -23 lines) Patch
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/page_load_metrics/metrics_navigation_throttle.h View 1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/metrics_navigation_throttle.cc View 1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/metrics_web_contents_observer.h View 1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/page_load_metrics/metrics_web_contents_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +61 lines, -15 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_tracker.h View 1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +22 lines, -0 lines 0 comments Download
A chrome/test/data/page_load_metrics/large.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 91 (67 generated)
Bryan McQuade
PTAL, thanks!
3 years, 11 months ago (2017-01-13 15:23:51 UTC) #44
RyanSturm
https://codereview.chromium.org/2624283004/diff/280001/chrome/browser/page_load_metrics/metrics_web_contents_observer.cc File chrome/browser/page_load_metrics/metrics_web_contents_observer.cc (right): https://codereview.chromium.org/2624283004/diff/280001/chrome/browser/page_load_metrics/metrics_web_contents_observer.cc#newcode189 chrome/browser/page_load_metrics/metrics_web_contents_observer.cc:189: for (const auto& kv : provisional_loads_) { I'd actually ...
3 years, 11 months ago (2017-01-13 15:39:50 UTC) #46
Bryan McQuade
Thanks! Can you give a little more detail on the benefits to deferring the callback ...
3 years, 11 months ago (2017-01-13 15:47:14 UTC) #47
Bryan McQuade
https://codereview.chromium.org/2624283004/diff/280001/chrome/browser/page_load_metrics/metrics_web_contents_observer.cc File chrome/browser/page_load_metrics/metrics_web_contents_observer.cc (right): https://codereview.chromium.org/2624283004/diff/280001/chrome/browser/page_load_metrics/metrics_web_contents_observer.cc#newcode189 chrome/browser/page_load_metrics/metrics_web_contents_observer.cc:189: for (const auto& kv : provisional_loads_) { On 2017/01/13 ...
3 years, 11 months ago (2017-01-13 15:53:17 UTC) #48
Charlie Harrison
Just nits. I agree with bmcquade on the complexity tradeoff here. https://codereview.chromium.org/2624283004/diff/280001/chrome/browser/page_load_metrics/metrics_web_contents_observer.cc File chrome/browser/page_load_metrics/metrics_web_contents_observer.cc (right): ...
3 years, 11 months ago (2017-01-13 15:56:23 UTC) #49
Charlie Harrison
Would you mind adding a test?
3 years, 11 months ago (2017-01-13 15:58:30 UTC) #50
RyanSturm
Perhaps this should land and we can re-visit after new UMA comes in from canary. ...
3 years, 11 months ago (2017-01-13 16:15:46 UTC) #51
Bryan McQuade
On 2017/01/13 at 16:15:46, ryansturm wrote: > Perhaps this should land and we can re-visit ...
3 years, 11 months ago (2017-01-13 16:34:01 UTC) #52
Bryan McQuade
On 2017/01/13 at 16:34:01, Bryan McQuade wrote: > On 2017/01/13 at 16:15:46, ryansturm wrote: > ...
3 years, 11 months ago (2017-01-13 16:49:25 UTC) #55
RyanSturm
On 2017/01/13 16:34:01, Bryan McQuade wrote: > On 2017/01/13 at 16:15:46, ryansturm wrote: > > ...
3 years, 11 months ago (2017-01-13 16:56:00 UTC) #56
RyanSturm
On 2017/01/13 16:56:00, Ryan Sturm wrote: > On 2017/01/13 16:34:01, Bryan McQuade wrote: > > ...
3 years, 11 months ago (2017-01-13 17:04:13 UTC) #57
Charlie Harrison
We should enforce throttle ordering with comments, which I neglected to do in my first ...
3 years, 11 months ago (2017-01-13 17:19:14 UTC) #58
RyanSturm
On 2017/01/13 17:19:14, Charlie Harrison wrote: > We should enforce throttle ordering with comments, which ...
3 years, 11 months ago (2017-01-13 18:02:59 UTC) #61
Bryan McQuade
On 2017/01/13 at 18:02:59, ryansturm wrote: > On 2017/01/13 17:19:14, Charlie Harrison wrote: > > ...
3 years, 11 months ago (2017-01-13 19:55:25 UTC) #66
Bryan McQuade
On 2017/01/13 at 19:55:25, Bryan McQuade wrote: > On 2017/01/13 at 18:02:59, ryansturm wrote: > ...
3 years, 11 months ago (2017-01-13 19:57:28 UTC) #67
Charlie Harrison
I'm happy with either option. A single test is fine with me if you're having ...
3 years, 11 months ago (2017-01-13 20:00:43 UTC) #68
Bryan McQuade
On 2017/01/13 at 20:00:43, csharrison wrote: > I'm happy with either option. A single test ...
3 years, 11 months ago (2017-01-14 00:18:52 UTC) #71
Charlie Harrison
Would you address the nits I mentioned earlier? Otherwise LGTM
3 years, 11 months ago (2017-01-17 14:47:48 UTC) #72
Bryan McQuade
On 2017/01/13 at 15:58:30, csharrison wrote: > Would you mind adding a test? Added a ...
3 years, 11 months ago (2017-01-17 14:52:31 UTC) #73
Bryan McQuade
thanks! addressed comments https://codereview.chromium.org/2624283004/diff/280001/chrome/browser/page_load_metrics/metrics_web_contents_observer.cc File chrome/browser/page_load_metrics/metrics_web_contents_observer.cc (right): https://codereview.chromium.org/2624283004/diff/280001/chrome/browser/page_load_metrics/metrics_web_contents_observer.cc#newcode187 chrome/browser/page_load_metrics/metrics_web_contents_observer.cc:187: // https://docs.google.com/document/d/1dZP0si0IKEMeVKGsohJ3fFWiKqh3nZBtuTFVkAPSXYM/edit On 2017/01/13 at 15:56:23, ...
3 years, 11 months ago (2017-01-17 15:06:26 UTC) #74
RyanSturm
a couple of nits, but lgtm. https://codereview.chromium.org/2624283004/diff/360001/chrome/browser/page_load_metrics/metrics_navigation_throttle.h File chrome/browser/page_load_metrics/metrics_navigation_throttle.h (right): https://codereview.chromium.org/2624283004/diff/360001/chrome/browser/page_load_metrics/metrics_navigation_throttle.h#newcode21 chrome/browser/page_load_metrics/metrics_navigation_throttle.h:21: static std::unique_ptr<content::NavigationThrottle> Create( ...
3 years, 11 months ago (2017-01-17 17:54:37 UTC) #80
Bryan McQuade
Thanks! https://codereview.chromium.org/2624283004/diff/360001/chrome/browser/page_load_metrics/metrics_navigation_throttle.h File chrome/browser/page_load_metrics/metrics_navigation_throttle.h (right): https://codereview.chromium.org/2624283004/diff/360001/chrome/browser/page_load_metrics/metrics_navigation_throttle.h#newcode21 chrome/browser/page_load_metrics/metrics_navigation_throttle.h:21: static std::unique_ptr<content::NavigationThrottle> Create( On 2017/01/17 at 17:54:36, Ryan ...
3 years, 11 months ago (2017-01-17 19:18:12 UTC) #81
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/2624283004/380001
3 years, 11 months ago (2017-01-17 22:00:31 UTC) #88
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 22:06:48 UTC) #91
Message was sent while issue was closed.
Committed patchset #20 (id:380001) as
https://chromium.googlesource.com/chromium/src/+/67906e1cd7937494e078325ead8b...

Powered by Google App Engine
This is Rietveld 408576698