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

Issue 2719823003: Convert first contentful paint logging to the new UKM client API (Closed)

Created:
3 years, 9 months ago by Bryan McQuade
Modified:
3 years, 9 months ago
CC:
chromium-reviews, csharrison+watch_chromium.org, loading-reviews+metrics_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert first contentful paint logging to the new UKM client API This change switches FCP logging from the Source proto to the new UKM client API. This change also does the following: * extends the UKM test infrastructure slightly, in order to enable testing of metrics that use thew new client API. * renames committed_url to url in the client-side code, to match the proto * stops populating the first_contentful_paint source field and marks it as deprecated, as FCP is now recorded using the new client API. BUG=697454 Review-Url: https://codereview.chromium.org/2719823003 Cr-Commit-Position: refs/heads/master@{#454262} Committed: https://chromium.googlesource.com/chromium/src/+/117fb7823a566d83abc3db2d6f1cd06825e67d03

Patch Set 1 #

Patch Set 2 : add comments #

Patch Set 3 : add comments #

Patch Set 4 : Add additional UKM metrics using new UKM client API. #

Patch Set 5 : disable test temporarily #

Patch Set 6 : add test #

Patch Set 7 : update test #

Patch Set 8 : cleanup #

Patch Set 9 : mark fcp as deprecated #

Patch Set 10 : git cl try #

Patch Set 11 : extract constant names #

Patch Set 12 : cleanup #

Patch Set 13 : rebase #

Patch Set 14 : update #

Patch Set 15 : improvements #

Patch Set 16 : limit to fcp #

Total comments: 1

Patch Set 17 : test cleanup #

Patch Set 18 : address comment #

Patch Set 19 : rebase #

Patch Set 20 : use int32_t #

Patch Set 21 : migrate to int32_t #

Total comments: 10

Patch Set 22 : address comments #

Patch Set 23 : renames #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -56 lines) Patch
M chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +24 lines, -2 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +44 lines, -16 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +112 lines, -14 lines 0 comments Download
M components/metrics/proto/ukm/source.proto View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -2 lines 0 comments Download
M components/ukm/test_ukm_service.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M components/ukm/test_ukm_service.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M components/ukm/ukm_entry.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -1 line 0 comments Download
M components/ukm/ukm_entry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M components/ukm/ukm_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +4 lines, -0 lines 0 comments Download
M components/ukm/ukm_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -2 lines 0 comments Download
M components/ukm/ukm_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -14 lines 0 comments Download
M components/ukm/ukm_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 101 (83 generated)
Zhen Wang
The usage of UKM interface looks ok to me. The build dependency issue should be ...
3 years, 9 months ago (2017-02-27 23:19:24 UTC) #8
Zhen Wang
By the way, should we separate this CL into 2: one to change the use ...
3 years, 9 months ago (2017-03-01 17:06:57 UTC) #48
Bryan McQuade
On 2017/03/01 at 17:06:57, zhenw wrote: > By the way, should we separate this CL ...
3 years, 9 months ago (2017-03-01 17:20:24 UTC) #49
Zhen Wang
On 2017/03/01 17:20:24, Bryan McQuade wrote: > On 2017/03/01 at 17:06:57, zhenw wrote: > > ...
3 years, 9 months ago (2017-03-01 17:37:34 UTC) #50
Bryan McQuade
I limited this change to porting FCP over to the new API. PTAL, thanks!
3 years, 9 months ago (2017-03-01 18:26:02 UTC) #54
Bryan McQuade
rkaplow, holte, zhenw, PTAL, thanks!
3 years, 9 months ago (2017-03-01 18:57:49 UTC) #57
Zhen Wang
https://codereview.chromium.org/2719823003/diff/300001/chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.h File chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.h (right): https://codereview.chromium.org/2719823003/diff/300001/chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.h#newcode60 chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.h:60: std::unique_ptr<ukm::UkmEntryBuilder> builder_; Builder will only add UkmEntry to UkmService ...
3 years, 9 months ago (2017-03-01 19:18:00 UTC) #58
Bryan McQuade
On 2017/03/01 at 19:18:00, zhenw wrote: > https://codereview.chromium.org/2719823003/diff/300001/chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.h > File chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.h (right): > > https://codereview.chromium.org/2719823003/diff/300001/chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.h#newcode60 ...
3 years, 9 months ago (2017-03-01 19:26:16 UTC) #61
Steven Holte
On 2017/03/01 19:26:16, Bryan McQuade wrote: > On 2017/03/01 at 19:18:00, zhenw wrote: > > ...
3 years, 9 months ago (2017-03-01 21:49:52 UTC) #64
Bryan McQuade
On 2017/03/01 at 21:49:52, holte wrote: > On 2017/03/01 19:26:16, Bryan McQuade wrote: > > ...
3 years, 9 months ago (2017-03-01 22:07:45 UTC) #65
Zhen Wang
https://codereview.chromium.org/2719823003/diff/400001/components/metrics/proto/ukm/source.proto File components/metrics/proto/ukm/source.proto (right): https://codereview.chromium.org/2719823003/diff/400001/components/metrics/proto/ukm/source.proto#newcode27 components/metrics/proto/ukm/source.proto:27: optional int64 navigation_time_msec = 3; Are we also going ...
3 years, 9 months ago (2017-03-01 23:28:41 UTC) #80
Bryan McQuade
https://codereview.chromium.org/2719823003/diff/400001/components/metrics/proto/ukm/source.proto File components/metrics/proto/ukm/source.proto (right): https://codereview.chromium.org/2719823003/diff/400001/components/metrics/proto/ukm/source.proto#newcode27 components/metrics/proto/ukm/source.proto:27: optional int64 navigation_time_msec = 3; On 2017/03/01 at 23:28:41, ...
3 years, 9 months ago (2017-03-01 23:35:32 UTC) #81
Zhen Wang
On 2017/03/01 23:35:32, Bryan McQuade wrote: > https://codereview.chromium.org/2719823003/diff/400001/components/metrics/proto/ukm/source.proto > File components/metrics/proto/ukm/source.proto (right): > > https://codereview.chromium.org/2719823003/diff/400001/components/metrics/proto/ukm/source.proto#newcode27 ...
3 years, 9 months ago (2017-03-01 23:38:00 UTC) #82
rkaplow
https://codereview.chromium.org/2719823003/diff/400001/chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.cc File chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.cc (right): https://codereview.chromium.org/2719823003/diff/400001/chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.cc#newcode59 chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.cc:59: AddPageLoadExtraInfoMetrics(info, base::TimeTicks()); shouldn't this be Now()? Also i also ...
3 years, 9 months ago (2017-03-01 23:54:39 UTC) #85
Bryan McQuade
addressed comments, thanks! ptal. https://codereview.chromium.org/2719823003/diff/400001/chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.cc File chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.cc (right): https://codereview.chromium.org/2719823003/diff/400001/chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.cc#newcode59 chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.cc:59: AddPageLoadExtraInfoMetrics(info, base::TimeTicks()); On 2017/03/01 at ...
3 years, 9 months ago (2017-03-02 03:49:50 UTC) #87
rkaplow
lgtm
3 years, 9 months ago (2017-03-02 15:04:26 UTC) #95
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/2719823003/440001
3 years, 9 months ago (2017-03-02 15:15:24 UTC) #98
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 15:21:36 UTC) #101
Message was sent while issue was closed.
Committed patchset #23 (id:440001) as
https://chromium.googlesource.com/chromium/src/+/117fb7823a566d83abc3db2d6f1c...

Powered by Google App Engine
This is Rietveld 408576698