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

Issue 2212183004: Log to UMA when x-origin frames (1) are created and (2) become visible (Closed)

Created:
4 years, 4 months ago by dgrogan
Modified:
4 years, 3 months ago
Reviewers:
Ilya Sherman, Sami, dcheng, ojan
CC:
asvitkine+watch_chromium.org, blink-reviews, chromium-reviews, mlamouri+watch-blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Log UMA when x-origin documents (1) are created and (2) become visible This will give us an upper bound on the % of iframes for which we can defer loading. BUG=635105 Committed: https://crrev.com/2e418c5d9e4ba04885654f1b53ea80f60b1316fd Cr-Commit-Position: refs/heads/master@{#417064}

Patch Set 1 #

Total comments: 12

Patch Set 2 : rebase #

Patch Set 3 : log creation after installNewDocument #

Total comments: 4

Patch Set 4 : use frameloader->stateMachine. kill racy DCHECK. rename histogram #

Total comments: 2

Patch Set 5 : move to Document #

Total comments: 7

Patch Set 6 : change some null checks to DCHECK #

Patch Set 7 : DCHECK frame().document() #

Patch Set 8 : ToT #

Patch Set 9 : rename histogram: s/Frame/Document/ #

Total comments: 7

Patch Set 10 : put histogram under Navigation category #

Patch Set 11 : fix histogram description #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -1 line) Patch
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (17 generated)
dgrogan
Sami, do you know of a better place to log when a cross-origin frame is ...
4 years, 4 months ago (2016-08-05 23:54:18 UTC) #2
Sami
Would this work as an intersection observer? I'm planning to make FrameView throttling be drive ...
4 years, 4 months ago (2016-08-08 11:09:47 UTC) #3
dgrogan
It will work probably work fine as an intersection observer. Ojan pointed out a small ...
4 years, 4 months ago (2016-08-08 17:45:48 UTC) #4
ojan
https://codereview.chromium.org/2212183004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2212183004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode4185 third_party/WebKit/Source/core/frame/FrameView.cpp:4185: // TODO(dgrogan): Document why we need this check. For ...
4 years, 4 months ago (2016-08-08 22:01:54 UTC) #6
dgrogan
https://codereview.chromium.org/2212183004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2212183004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode4201 third_party/WebKit/Source/core/frame/FrameView.cpp:4201: // TODO(dgrogan): Change this to DCHECK(m_viewportIntersectionValid)? On 2016/08/08 22:01:54, ...
4 years, 4 months ago (2016-08-09 00:30:16 UTC) #7
dcheng
https://codereview.chromium.org/2212183004/diff/1/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2212183004/diff/1/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode887 third_party/WebKit/Source/core/frame/LocalFrame.cpp:887: // Can't do it in the ctor because isCrossOrigin ...
4 years, 4 months ago (2016-08-09 01:24:04 UTC) #9
Sami
On 2016/08/08 17:45:48, dgrogan (OOO Aug 9 - 17) wrote: > It will work probably ...
4 years, 4 months ago (2016-08-09 10:28:26 UTC) #10
dgrogan
dcheng, could you take a look? https://codereview.chromium.org/2212183004/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2212183004/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode860 third_party/WebKit/Source/core/frame/LocalFrame.cpp:860: if (!m_creationWasLogged && ...
4 years, 4 months ago (2016-08-19 23:56:23 UTC) #11
dcheng
https://codereview.chromium.org/2212183004/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2212183004/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode860 third_party/WebKit/Source/core/frame/LocalFrame.cpp:860: if (!m_creationWasLogged && isCrossOriginSubframe()) { On 2016/08/19 23:56:23, dgrogan ...
4 years, 4 months ago (2016-08-22 07:00:29 UTC) #12
dgrogan
Thanks for your help. I now need to figure out if I want to remove ...
4 years, 4 months ago (2016-08-22 23:38:09 UTC) #15
dgrogan
Ready for another look, ojan and/or dcheng. I decided to keep one counter per frame, ...
4 years, 4 months ago (2016-08-23 23:28:28 UTC) #17
dcheng
https://codereview.chromium.org/2212183004/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2212183004/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode699 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:699: frame->didInstallNewRealDocument(); I think it would be nicer if we ...
4 years, 3 months ago (2016-08-26 18:28:29 UTC) #18
dgrogan
https://codereview.chromium.org/2212183004/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2212183004/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode699 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:699: frame->didInstallNewRealDocument(); On 2016/08/26 18:28:29, dcheng wrote: > I think ...
4 years, 3 months ago (2016-08-26 18:54:06 UTC) #19
dcheng
On 2016/08/26 18:54:06, dgrogan wrote: > https://codereview.chromium.org/2212183004/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp > File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): > > https://codereview.chromium.org/2212183004/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode699 > ...
4 years, 3 months ago (2016-08-26 19:13:49 UTC) #20
dgrogan
We now count Documents instead of LocalFrames. Ready for another look.
4 years, 3 months ago (2016-08-26 22:36:12 UTC) #23
dcheng
https://codereview.chromium.org/2212183004/diff/180001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2212183004/diff/180001/third_party/WebKit/Source/core/dom/Document.cpp#newcode503 third_party/WebKit/Source/core/dom/Document.cpp:503: if (frame() && getSecurityOrigin() && frame()->tree().top()->securityContext() && !getSecurityOrigin()->canAccess(frame()->tree().top()->securityContext()->getSecurityOrigin())) I ...
4 years, 3 months ago (2016-08-29 20:37:19 UTC) #24
dgrogan
https://codereview.chromium.org/2212183004/diff/180001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2212183004/diff/180001/third_party/WebKit/Source/core/dom/Document.cpp#newcode503 third_party/WebKit/Source/core/dom/Document.cpp:503: if (frame() && getSecurityOrigin() && frame()->tree().top()->securityContext() && !getSecurityOrigin()->canAccess(frame()->tree().top()->securityContext()->getSecurityOrigin())) On ...
4 years, 3 months ago (2016-08-31 19:52:41 UTC) #25
dcheng
https://codereview.chromium.org/2212183004/diff/180001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2212183004/diff/180001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode4263 third_party/WebKit/Source/core/frame/FrameView.cpp:4263: if (frame().document()) On 2016/08/31 19:52:41, dgrogan wrote: > On ...
4 years, 3 months ago (2016-09-01 21:24:27 UTC) #26
dgrogan
> Looking at the code, I'm actually not sure how we'd end up in this ...
4 years, 3 months ago (2016-09-06 18:31:12 UTC) #30
dgrogan
Ok, ready for another look.
4 years, 3 months ago (2016-09-06 18:57:51 UTC) #31
ojan
lgtm
4 years, 3 months ago (2016-09-06 21:07:04 UTC) #33
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/2212183004/260001
4 years, 3 months ago (2016-09-06 21:08:10 UTC) #34
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/253825)
4 years, 3 months ago (2016-09-06 21:15:43 UTC) #36
dgrogan
isherman, could you review the new histogram?
4 years, 3 months ago (2016-09-06 21:19:30 UTC) #38
Ilya Sherman
https://codereview.chromium.org/2212183004/diff/260001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2212183004/diff/260001/tools/metrics/histograms/histograms.xml#newcode8726 tools/metrics/histograms/histograms.xml:8726: +<histogram name="DeferredDocumentLoading.StatesV1" It looks like you're adding a new ...
4 years, 3 months ago (2016-09-06 21:29:17 UTC) #39
dcheng
blink LGTM, thanks for doing the investigations on what can be null
4 years, 3 months ago (2016-09-07 07:25:08 UTC) #40
dgrogan
https://codereview.chromium.org/2212183004/diff/260001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2212183004/diff/260001/tools/metrics/histograms/histograms.xml#newcode8726 tools/metrics/histograms/histograms.xml:8726: +<histogram name="DeferredDocumentLoading.StatesV1" On 2016/09/06 21:29:17, Ilya Sherman wrote: > ...
4 years, 3 months ago (2016-09-07 17:54:50 UTC) #41
Ilya Sherman
https://codereview.chromium.org/2212183004/diff/260001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2212183004/diff/260001/tools/metrics/histograms/histograms.xml#newcode8726 tools/metrics/histograms/histograms.xml:8726: +<histogram name="DeferredDocumentLoading.StatesV1" On 2016/09/07 17:54:50, dgrogan wrote: > On ...
4 years, 3 months ago (2016-09-07 18:00:38 UTC) #42
Ilya Sherman
Oh, and: metrics lgtm
4 years, 3 months ago (2016-09-07 18:00:52 UTC) #43
dgrogan
Thanks for the reviews, all https://codereview.chromium.org/2212183004/diff/260001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2212183004/diff/260001/tools/metrics/histograms/histograms.xml#newcode74647 tools/metrics/histograms/histograms.xml:74647: + <int value="1" label="WouldLoadBecauseVisible"/> ...
4 years, 3 months ago (2016-09-07 18:09:39 UTC) #44
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/2212183004/300001
4 years, 3 months ago (2016-09-07 18:10:08 UTC) #47
commit-bot: I haz the power
Committed patchset #11 (id:300001)
4 years, 3 months ago (2016-09-07 21:55:08 UTC) #48
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 21:57:36 UTC) #50
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/2e418c5d9e4ba04885654f1b53ea80f60b1316fd
Cr-Commit-Position: refs/heads/master@{#417064}

Powered by Google App Engine
This is Rietveld 408576698