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

Issue 8404018: chrome.loadTimes() shouldn't be affected by in-document navigation. (Closed)

Created:
9 years, 1 month ago by James Simonsen
Modified:
8 years, 11 months ago
CC:
chromium-reviews, Erik does not do reviews, brettw-cc_chromium.org, jam, mihaip+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., battre
Visibility:
Public.

Description

chrome.loadTimes() shouldn't be affected by in-document navigation. Data that's only pertinent to initially loading the document is stored in LoadTimes. These are carried over when the NavigationState changes due to in-document navigation. I'd be interested in feedback on the position of LoadTimes. I'm not happy with it. I'd prefer to have it on WebDataSource, but I expect NavigationState was hidden in ExtraData for a reason. This also impacts PLT histograms. In-document navigation is the cause of some of the missing start types. So, by fixing this, we should get more complete page load data. There are probably whole classes of sites where we have no PLT data, such as Google Docs. BUG=79078 TEST=ui_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110392

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix style #

Total comments: 2

Patch Set 3 : Split into DocumentState #

Patch Set 4 : Stop hitting DCHECK #

Patch Set 5 : Split into separate file #

Patch Set 6 : Sync and merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -707 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/content_settings_observer.cc View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/renderer/loadtimes_extension_bindings.cc View 1 2 3 4 3 chunks +20 lines, -20 lines 0 comments Download
A chrome/renderer/loadtimes_extension_bindings_uitest.cc View 1 2 3 4 1 chunk +73 lines, -0 lines 0 comments Download
M chrome/renderer/page_load_histograms.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/renderer/page_load_histograms.cc View 1 2 3 4 36 chunks +109 lines, -109 lines 0 comments Download
M chrome/renderer/prerender/prerender_helper.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate.cc View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A + content/public/renderer/document_state.h View 1 2 3 4 10 chunks +64 lines, -119 lines 0 comments Download
A + content/public/renderer/document_state.cc View 1 2 3 4 1 chunk +23 lines, -30 lines 0 comments Download
M content/public/renderer/navigation_state.h View 1 2 3 4 3 chunks +7 lines, -245 lines 0 comments Download
M content/public/renderer/navigation_state.cc View 1 2 3 4 1 chunk +3 lines, -31 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 3 chunks +8 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 30 chunks +165 lines, -136 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
James Simonsen
John, please review NavigationState and RenderViewImpl. Jim, please review the PLT histogram changes.
9 years, 1 month ago (2011-10-27 19:06:58 UTC) #1
jam
I really am not familiar with the details of that code, so all I can ...
9 years, 1 month ago (2011-10-27 20:39:53 UTC) #2
James Simonsen
On 2011/10/27 20:39:53, John Abd-El-Malek wrote: > I really am not familiar with the details ...
9 years, 1 month ago (2011-10-27 21:18:40 UTC) #3
darin (slow to review)
As discussed in person, I think we should probably introduce a DocumentState object that is ...
9 years, 1 month ago (2011-10-27 23:31:13 UTC) #4
jar (doing other things)
PLT have been a nightmare. If you have nailed this (finally), major kudos. If you ...
9 years, 1 month ago (2011-10-27 23:58:38 UTC) #5
Paweł Hajdan Jr.
Drive-by, no need to wait for me. http://codereview.chromium.org/8404018/diff/2003/chrome/renderer/loadtimes_extension_bindings_uitest.cc File chrome/renderer/loadtimes_extension_bindings_uitest.cc (right): http://codereview.chromium.org/8404018/diff/2003/chrome/renderer/loadtimes_extension_bindings_uitest.cc#newcode39 chrome/renderer/loadtimes_extension_bindings_uitest.cc:39: scoped_refptr<TabProxy> tab_proxy ...
9 years, 1 month ago (2011-10-28 08:29:34 UTC) #6
James Simonsen
On 2011/10/27 23:31:13, darin wrote: > As discussed in person, I think we should probably ...
9 years, 1 month ago (2011-11-01 18:40:23 UTC) #7
James Simonsen
On 2011/11/01 18:40:23, James Simonsen wrote: > I still need to un-flake the test (there's ...
9 years, 1 month ago (2011-11-08 01:08:00 UTC) #8
James Simonsen
On 2011/11/08 01:08:00, James Simonsen wrote: > Darin, can you please take another look? darin: ...
9 years, 1 month ago (2011-11-15 22:40:06 UTC) #9
darin (slow to review)
LGTM
9 years, 1 month ago (2011-11-16 04:56:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonjam@chromium.org/8404018/19001
9 years, 1 month ago (2011-11-16 21:16:23 UTC) #11
commit-bot: I haz the power
Change committed as 110392
9 years, 1 month ago (2011-11-17 00:34:08 UTC) #12
Aaron Boodman
8 years, 11 months ago (2012-01-09 18:53:08 UTC) #13
Hi there.

Dominic Battre and I were looking at some data and we noticed a large spike in
the number of samples for PLT.BeginToFinish_NormalLoad (and related).

Also, the timings got a bit faster (~10%). Not sure if this was expected. Ping
us privately if this concerns you. Otherwise we'll assume it was by design.

Powered by Google App Engine
This is Rietveld 408576698