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

Issue 1913693002: Histogram the amount of time spent on HTTP(S) page loads (Closed)

Created:
4 years, 8 months ago by felt
Modified:
4 years, 7 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, csharrison+watch_chromium.org, loading-reviews+metrics_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Histogram the amount of time spent on HTTP(S) page loads This creates three histograms to show how time is distributed by scheme. The histograms are intended to answer the question: Do HTTPS page visits tend to be longer than HTTP page visits? BUG=588941 Committed: https://crrev.com/6165ca0c38af8740c831b65ad79655933c0ceb5d Cr-Commit-Position: refs/heads/master@{#394645}

Patch Set 1 #

Patch Set 2 : Add comments #

Total comments: 19

Patch Set 3 : Some of the changes #

Total comments: 5

Patch Set 4 : OnCommit -> OnStart #

Patch Set 5 : Added unit test #

Total comments: 2

Patch Set 6 : Now with actual unit tests #

Total comments: 2

Patch Set 7 : Replace unit tests with browser tests #

Patch Set 8 : Cleanup #

Total comments: 6

Patch Set 9 : Rebased #

Patch Set 10 : Changes for csharrison #

Patch Set 11 : Check gt 0, instead of kTinySleep #

Patch Set 12 : Equality operations are hard, let's go trybotting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -5 lines) Patch
M chrome/browser/page_load_metrics/observers/from_gws_page_load_metrics_observer.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/page_load_metrics/observers/from_gws_page_load_metrics_observer.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
A chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +320 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_initialize.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/page_load_metrics/browser/metrics_web_contents_observer.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -1 line 0 comments Download
M components/page_load_metrics/browser/metrics_web_contents_observer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M components/page_load_metrics/browser/page_load_metrics_observer.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (7 generated)
felt
csharrison, PTAL?
4 years, 8 months ago (2016-04-23 02:02:09 UTC) #3
Charlie Harrison
This looks great! I'm excited about these metrics. Because the system was not quite designed ...
4 years, 8 months ago (2016-04-25 13:20:08 UTC) #4
felt
A quick question below, before I change the API & write tests. https://codereview.chromium.org/1913693002/diff/20001/chrome/browser/page_load_metrics/observers/https_page_load_metrics_observer.cc File chrome/browser/page_load_metrics/observers/https_page_load_metrics_observer.cc ...
4 years, 8 months ago (2016-04-25 21:30:04 UTC) #5
Charlie Harrison
Thanks! Looks a lot cleaner now. https://codereview.chromium.org/1913693002/diff/20001/components/page_load_metrics/browser/page_load_metrics_observer.h File components/page_load_metrics/browser/page_load_metrics_observer.h (right): https://codereview.chromium.org/1913693002/diff/20001/components/page_load_metrics/browser/page_load_metrics_observer.h#newcode124 components/page_load_metrics/browser/page_load_metrics_observer.h:124: bool started_in_foreground) {} ...
4 years, 8 months ago (2016-04-25 21:49:11 UTC) #7
Bryan McQuade
Thanks for this! I've been wanting to add shown/hidden methods on PageLoadTracker - glad to ...
4 years, 8 months ago (2016-04-25 22:00:04 UTC) #8
felt
Added unit tests too. https://codereview.chromium.org/1913693002/diff/20001/components/page_load_metrics/browser/page_load_metrics_observer.h File components/page_load_metrics/browser/page_load_metrics_observer.h (right): https://codereview.chromium.org/1913693002/diff/20001/components/page_load_metrics/browser/page_load_metrics_observer.h#newcode124 components/page_load_metrics/browser/page_load_metrics_observer.h:124: bool started_in_foreground) {} On 2016/04/25 ...
4 years, 8 months ago (2016-04-26 01:46:29 UTC) #9
Charlie Harrison
I think you missed a "git add" for the unit tests. Otherwise looks good. https://codereview.chromium.org/1913693002/diff/40001/chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer.cc ...
4 years, 8 months ago (2016-04-26 21:09:47 UTC) #10
felt
Well that's embarrassing. Did the git add, so file now there...
4 years, 8 months ago (2016-04-26 21:15:05 UTC) #11
Charlie Harrison
Thanks! https://codereview.chromium.org/1913693002/diff/100001/chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_unittest.cc File chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_unittest.cc (right): https://codereview.chromium.org/1913693002/diff/100001/chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_unittest.cc#newcode60 chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_unittest.cc:60: EXPECT_GT(upper_bound_delta.InMilliseconds(), This is good, but I'm nervous that ...
4 years, 8 months ago (2016-04-26 21:31:49 UTC) #12
felt
I've completely rewritten the tests as browser tests. I feel much better about the coverage ...
4 years, 7 months ago (2016-05-17 20:51:29 UTC) #13
Charlie Harrison
This looks great! Thanks for the updated browser tests. https://codereview.chromium.org/1913693002/diff/140001/chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_browsertest.cc File chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_browsertest.cc (right): https://codereview.chromium.org/1913693002/diff/140001/chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_browsertest.cc#newcode24 chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_browsertest.cc:24: ...
4 years, 7 months ago (2016-05-18 15:17:50 UTC) #14
felt
https://codereview.chromium.org/1913693002/diff/140001/chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_browsertest.cc File chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_browsertest.cc (right): https://codereview.chromium.org/1913693002/diff/140001/chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_browsertest.cc#newcode24 chrome/browser/page_load_metrics/observers/https_engagement_page_load_metrics_observer_browsertest.cc:24: const char kHttpHistogram[] = "Navigation.EngagementTime.HTTP"; On 2016/05/18 15:17:49, csharrison ...
4 years, 7 months ago (2016-05-18 19:36:58 UTC) #15
felt
+holte, PTAL as an OWNER of histograms.xml?
4 years, 7 months ago (2016-05-18 19:38:47 UTC) #17
Charlie Harrison
Thanks. The only thing I'm concerned with now is the checks for TinyDelay. Do we ...
4 years, 7 months ago (2016-05-18 19:47:28 UTC) #18
Charlie Harrison
Thanks. The only thing I'm concerned with now is the checks for TinyDelay. Do we ...
4 years, 7 months ago (2016-05-18 19:47:29 UTC) #19
felt
On 2016/05/18 19:47:29, csharrison wrote: > Thanks. The only thing I'm concerned with now is ...
4 years, 7 months ago (2016-05-18 19:58:38 UTC) #20
felt
4 years, 7 months ago (2016-05-18 19:58:44 UTC) #21
Charlie Harrison
On 2016/05/18 19:58:38, felt wrote: > On 2016/05/18 19:47:29, csharrison wrote: > > Thanks. The ...
4 years, 7 months ago (2016-05-18 20:42:28 UTC) #22
felt
On 2016/05/18 20:42:28, csharrison wrote: > On 2016/05/18 19:58:38, felt wrote: > > On 2016/05/18 ...
4 years, 7 months ago (2016-05-18 21:29:37 UTC) #23
Charlie Harrison
On 2016/05/18 21:29:37, felt wrote: > On 2016/05/18 20:42:28, csharrison wrote: > > On 2016/05/18 ...
4 years, 7 months ago (2016-05-18 21:40:06 UTC) #24
felt
On 2016/05/18 21:40:06, csharrison wrote: > On 2016/05/18 21:29:37, felt wrote: > > On 2016/05/18 ...
4 years, 7 months ago (2016-05-18 23:06:25 UTC) #25
Steven Holte
lgtm
4 years, 7 months ago (2016-05-18 23:50:22 UTC) #26
Charlie Harrison
LGTM thanks!
4 years, 7 months ago (2016-05-19 00:46:10 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1913693002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1913693002/220001
4 years, 7 months ago (2016-05-19 00:49:32 UTC) #29
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 7 months ago (2016-05-19 03:04:57 UTC) #31
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 03:07:43 UTC) #33
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/6165ca0c38af8740c831b65ad79655933c0ceb5d
Cr-Commit-Position: refs/heads/master@{#394645}

Powered by Google App Engine
This is Rietveld 408576698