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

Issue 2936723002: Report frequency of single page app navigations to UMA (Closed)

Created:
3 years, 6 months ago by Liquan (Max) Gu
Modified:
3 years, 5 months ago
Reviewers:
Nate Chapin, tdresser, jwd
CC:
chromium-reviews, blink-reviews, Yoav Weiss, kinuko+watch, platform-architecture-syd+reviews-web_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Report frequency of single page app navigations to UMA We currently output a trace event for each single page app navigation. This change is to record that for UMA as well. BUG=720550 Review-Url: https://codereview.chromium.org/2936723002 Cr-Commit-Position: refs/heads/master@{#484153} Committed: https://chromium.googlesource.com/chromium/src/+/772ace0703fb420097d1c14b53a5f186d2027771

Patch Set 1 #

Total comments: 2

Patch Set 2 : update histograms.xml #

Total comments: 7

Patch Set 3 : add test; remove types #

Patch Set 4 : Update SPA categories #

Total comments: 1

Patch Set 5 : add others category #

Patch Set 6 : add DCHECK, remove others as a category #

Total comments: 8

Patch Set 7 : move enum to header #

Total comments: 2

Patch Set 8 : nit #

Patch Set 9 : rebase #

Patch Set 10 : add helper function #

Total comments: 1

Patch Set 11 : add unreachable #

Total comments: 3

Patch Set 12 : NOTREACHED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -0 lines) Patch
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderTypes.h View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +42 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 61 (24 generated)
Liquan (Max) Gu
3 years, 6 months ago (2017-06-12 19:01:59 UTC) #2
tdresser
Make sure to update histograms.xml. Any thoughts on a test for this? Could we do ...
3 years, 6 months ago (2017-06-12 20:54:19 UTC) #3
Liquan (Max) Gu
On 2017/06/12 20:54:19, tdresser wrote: > Make sure to update histograms.xml. > > Any thoughts ...
3 years, 6 months ago (2017-06-12 21:33:06 UTC) #4
Liquan (Max) Gu
https://codereview.chromium.org/2936723002/diff/1/third_party/WebKit/Source/core/loader/FrameLoaderTypes.h File third_party/WebKit/Source/core/loader/FrameLoaderTypes.h (right): https://codereview.chromium.org/2936723002/diff/1/third_party/WebKit/Source/core/loader/FrameLoaderTypes.h#newcode46 third_party/WebKit/Source/core/loader/FrameLoaderTypes.h:46: kFrameLoadTypeCount On 2017/06/12 20:54:19, tdresser wrote: > I think ...
3 years, 6 months ago (2017-06-12 21:51:31 UTC) #6
tdresser
I think tests are here: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/web/tests/WebFrameTest.cpp https://codereview.chromium.org/2936723002/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2936723002/diff/40001/tools/metrics/histograms/histograms.xml#newcode60392 tools/metrics/histograms/histograms.xml:60392: + units="ms"> Take ...
3 years, 6 months ago (2017-06-13 15:21:29 UTC) #7
Nate Chapin
https://codereview.chromium.org/2936723002/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2936723002/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode490 third_party/WebKit/Source/core/loader/FrameLoader.cpp:490: FrameLoadType::kFrameLoadTypeCount); FrameLoadTypes might be overloaded. For example, FrameLoadTypeStandard could ...
3 years, 6 months ago (2017-06-14 18:10:50 UTC) #9
tdresser
https://codereview.chromium.org/2936723002/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2936723002/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode490 third_party/WebKit/Source/core/loader/FrameLoader.cpp:490: FrameLoadType::kFrameLoadTypeCount); On 2017/06/14 18:10:50, Nate Chapin wrote: > FrameLoadTypes ...
3 years, 6 months ago (2017-06-14 18:30:52 UTC) #10
Liquan (Max) Gu
The histogram now just records the total count of same-document-navigation. Please take a look.
3 years, 6 months ago (2017-06-14 20:21:57 UTC) #11
Nate Chapin
lgtm
3 years, 6 months ago (2017-06-15 16:36:53 UTC) #12
Nate Chapin
On 2017/06/14 18:30:52, tdresser wrote: > https://codereview.chromium.org/2936723002/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp > File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): > > https://codereview.chromium.org/2936723002/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode490 > ...
3 years, 6 months ago (2017-06-15 16:39:24 UTC) #13
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/2936723002/60001
3 years, 6 months ago (2017-06-15 17:32:42 UTC) #15
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/464914)
3 years, 6 months ago (2017-06-15 17:43:30 UTC) #17
Liquan (Max) Gu
+jwd@. Please take a look at histograms.xml. Thanks!
3 years, 6 months ago (2017-06-15 18:52:51 UTC) #19
tdresser
On 2017/06/15 18:52:51, Liquan (Max) Gu wrote: > +jwd@. Please take a look at histograms.xml. ...
3 years, 6 months ago (2017-06-15 19:34:21 UTC) #20
Liquan (Max) Gu
On 2017/06/15 19:34:21, tdresser wrote: > On 2017/06/15 18:52:51, Liquan (Max) Gu wrote: > > ...
3 years, 6 months ago (2017-06-15 20:08:56 UTC) #21
Nate Chapin
On 2017/06/15 20:08:56, Liquan (Max) Gu wrote: > On 2017/06/15 19:34:21, tdresser wrote: > > ...
3 years, 6 months ago (2017-06-15 20:14:16 UTC) #22
Liquan (Max) Gu
https://codereview.chromium.org/2936723002/diff/140001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2936723002/diff/140001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode501 third_party/WebKit/Source/core/loader/FrameLoader.cpp:501: if (same_document_navigation_source == kSameDocumentNavigationHistoryApi) { Can I assume that ...
3 years, 6 months ago (2017-06-16 17:37:36 UTC) #26
Nate Chapin
On 2017/06/16 17:37:36, Liquan (Max) Gu wrote: > https://codereview.chromium.org/2936723002/diff/140001/third_party/WebKit/Source/core/loader/FrameLoader.cpp > File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): > > ...
3 years, 6 months ago (2017-06-19 17:00:50 UTC) #27
Liquan (Max) Gu
Acknowledged several comments. Please take a look at the latest changes. Unnecessary category "Others" is ...
3 years, 6 months ago (2017-06-20 23:35:39 UTC) #29
jwd
I got the impression from tdresser@'s comments in the review that the metrics might change. ...
3 years, 6 months ago (2017-06-21 14:35:07 UTC) #30
tdresser
jwd@, we're happy with this definition - PTAL. LGTM https://codereview.chromium.org/2936723002/diff/200001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2936723002/diff/200001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode500 third_party/WebKit/Source/core/loader/FrameLoader.cpp:500: ...
3 years, 6 months ago (2017-06-21 14:45:00 UTC) #31
Nate Chapin
LGTM w/nit https://codereview.chromium.org/2936723002/diff/200001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2936723002/diff/200001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode488 third_party/WebKit/Source/core/loader/FrameLoader.cpp:488: // This enum is used to index ...
3 years, 6 months ago (2017-06-21 18:05:24 UTC) #32
jwd
lgtm with tdresser's histogram nit.
3 years, 6 months ago (2017-06-22 19:02:47 UTC) #33
Liquan (Max) Gu
Updated the CL, with something unclear. https://codereview.chromium.org/2936723002/diff/200001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2936723002/diff/200001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode488 third_party/WebKit/Source/core/loader/FrameLoader.cpp:488: // This enum ...
3 years, 5 months ago (2017-06-26 14:52:22 UTC) #34
tdresser
Thanks, still LGTM, with additional nit. https://codereview.chromium.org/2936723002/diff/220001/third_party/WebKit/Source/core/loader/FrameLoaderTypes.h File third_party/WebKit/Source/core/loader/FrameLoaderTypes.h (right): https://codereview.chromium.org/2936723002/diff/220001/third_party/WebKit/Source/core/loader/FrameLoaderTypes.h#newcode108 third_party/WebKit/Source/core/loader/FrameLoaderTypes.h:108: // tools/metrics/histograms/enums. nit: ...
3 years, 5 months ago (2017-06-26 15:12:51 UTC) #35
Liquan (Max) Gu
https://codereview.chromium.org/2936723002/diff/220001/third_party/WebKit/Source/core/loader/FrameLoaderTypes.h File third_party/WebKit/Source/core/loader/FrameLoaderTypes.h (right): https://codereview.chromium.org/2936723002/diff/220001/third_party/WebKit/Source/core/loader/FrameLoaderTypes.h#newcode108 third_party/WebKit/Source/core/loader/FrameLoaderTypes.h:108: // tools/metrics/histograms/enums. On 2017/06/26 15:12:50, tdresser wrote: > nit: ...
3 years, 5 months ago (2017-06-26 15:45:11 UTC) #36
Liquan (Max) Gu
https://codereview.chromium.org/2936723002/diff/300001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2936723002/diff/300001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode199 third_party/WebKit/Source/core/loader/FrameLoader.cpp:199: static SinglePageAppNavigationType CategorizeSinglePageAppNavigation( Helper function is created. Nothing functional ...
3 years, 5 months ago (2017-07-04 17:26:17 UTC) #41
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/2936723002/300001
3 years, 5 months ago (2017-07-04 17:26:38 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/250874)
3 years, 5 months ago (2017-07-04 18:09:04 UTC) #45
Liquan (Max) Gu
Please advise. Thanks! https://codereview.chromium.org/2936723002/diff/320001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2936723002/diff/320001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode219 third_party/WebKit/Source/core/loader/FrameLoader.cpp:219: default: Compiling failed because of CQ ...
3 years, 5 months ago (2017-07-04 18:37:39 UTC) #46
tdresser
https://codereview.chromium.org/2936723002/diff/320001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2936723002/diff/320001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode219 third_party/WebKit/Source/core/loader/FrameLoader.cpp:219: default: On 2017/07/04 18:37:39, Liquan (Max) Gu wrote: > ...
3 years, 5 months ago (2017-07-04 18:42:39 UTC) #49
Liquan (Max) Gu
https://codereview.chromium.org/2936723002/diff/320001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2936723002/diff/320001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode219 third_party/WebKit/Source/core/loader/FrameLoader.cpp:219: default: On 2017/07/04 18:42:39, tdresser wrote: > On 2017/07/04 ...
3 years, 5 months ago (2017-07-04 18:52:04 UTC) #50
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/2936723002/290006
3 years, 5 months ago (2017-07-04 18:53:25 UTC) #53
tdresser
Still LGTM.
3 years, 5 months ago (2017-07-04 18:53:51 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/250899)
3 years, 5 months ago (2017-07-04 19:48:17 UTC) #56
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/2936723002/290006
3 years, 5 months ago (2017-07-04 19:54:25 UTC) #58
commit-bot: I haz the power
3 years, 5 months ago (2017-07-04 20:44:58 UTC) #61
Message was sent while issue was closed.
Committed patchset #12 (id:290006) as
https://chromium.googlesource.com/chromium/src/+/772ace0703fb420097d1c14b53a5...

Powered by Google App Engine
This is Rietveld 408576698