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

Issue 16514008: Add metrics for calculating precision/recall of link navigation pre-connect triggers. (Closed)

Created:
7 years, 6 months ago by kouhei (in TOK)
Modified:
7 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, haraken, tburkard
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add metrics for calculating precision/recall of link navigation pre-connect triggers. This patch adds the UMA "Net.PreconnectTriggerUsed", and add the UMA "Net.PreconnectedLinkNavigation". PredictorTabHelper collects requests information for user link navigation. This information is sent to class Predictor::PreconnectUsage to see if the navigation has possibly used a preconnect session from {mouse,touch}-event triggers. The UMA "Net.PreconnectTriggerUsed" records whether if a preconnect trigger is followed by a resource request (from link navigations) to the host or not. This is to measure precision of link-based preconnect triggers. The UMA "Net.PreconnectedLinkNavigation" records whether if a resource request from link navigations is preceded by a preconnect trigger. This is to measure recall of link-based preconnect triggers. BUG=235361 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215858

Patch Set 1 #

Total comments: 4

Patch Set 2 : WIP #

Patch Set 3 : #

Patch Set 4 : fix comments / remove leftover pritnfs #

Total comments: 10

Patch Set 5 : nits #

Total comments: 6

Patch Set 6 : PostTask Browser thr / add histograms.xml #

Total comments: 2

Patch Set 7 : fix comments / add ptr check #

Patch Set 8 : reverted change to ResourceRequestDetails, and use WebContentsObserver instead of Notifications. #

Patch Set 9 : rebase / comments update only #

Patch Set 10 : styling only (no logic change) #

Total comments: 25

Patch Set 11 : style fix #

Patch Set 12 : PostTask explicitly from caller #

Patch Set 13 : fix BrowserCommandTests. #

Total comments: 4

Patch Set 14 : #

Patch Set 15 : Uppercase used #

Total comments: 2

Patch Set 16 : use UrlInfo::MOUSE_OVER_MOTIVATED #

Patch Set 17 : styles #

Patch Set 18 : remove PRERENDER flag change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -20 lines) Patch
M chrome/browser/net/connect_interceptor.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/net/preconnect.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/predictor.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/net/predictor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +159 lines, -10 lines 0 comments Download
A chrome/browser/net/predictor_tab_helper.h View 1 2 3 4 5 6 7 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/net/predictor_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 4 chunks +26 lines, -5 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
kouhei (in TOK)
jar: Would you take a look?
7 years, 6 months ago (2013-06-07 22:40:14 UTC) #1
jar (doing other things)
If this does proceed, please also include the change to src/tools/metrics/histograms.xml https://codereview.chromium.org/16514008/diff/1/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): ...
7 years, 6 months ago (2013-06-10 03:17:16 UTC) #2
kouhei (in TOK)
Sorry, I will rework this patch. https://codereview.chromium.org/16514008/diff/1/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/16514008/diff/1/chrome/browser/net/predictor.cc#newcode847 chrome/browser/net/predictor.cc:847: const GURL& url, ...
7 years, 6 months ago (2013-06-10 23:24:05 UTC) #3
kouhei (in TOK)
Updated patch. jar, mmenke: Would you review chrome/browser/net/predictor_*.*? I will split the other parts of ...
7 years, 6 months ago (2013-06-14 16:49:42 UTC) #4
kouhei (in TOK)
ping. jar, mmenke: Would you review chrome/browser/net/predictor*.*? On 2013/06/14 16:49:42, kouhei wrote: > Updated patch. ...
7 years, 6 months ago (2013-06-17 23:14:13 UTC) #5
jar (doing other things)
I'm not sure which part you wanted reviewed by me... so this mostly became a ...
7 years, 6 months ago (2013-06-18 01:33:49 UTC) #6
mmenke
I'm unfamiliar with the code this touches, and just don't have time to learn it ...
7 years, 6 months ago (2013-06-18 01:45:17 UTC) #7
kouhei (in TOK)
jar: Thanks for review! cbentzel: Would you take a look or redirect to appropriate reviewer? ...
7 years, 6 months ago (2013-06-18 22:28:41 UTC) #8
kouhei (in TOK)
Comments addressed. mmenke, cbentzel: Would you take a look or recommend another reviewer?
7 years, 6 months ago (2013-06-21 02:51:32 UTC) #9
cbentzel
On 2013/06/21 02:51:32, kouhei wrote: > Comments addressed. > > mmenke, cbentzel: Would you take ...
7 years, 6 months ago (2013-06-21 14:45:08 UTC) #10
cbentzel
Can you update histograms.xml with the new UMA? Also, it would help to describe the ...
7 years, 6 months ago (2013-06-24 01:11:21 UTC) #11
cbentzel
I can dig some more into the code, but I am a bit confused about ...
7 years, 6 months ago (2013-06-24 01:46:46 UTC) #12
kouhei (in TOK)
On 2013/06/24 01:46:46, cbentzel wrote: > I can dig some more into the code, but ...
7 years, 6 months ago (2013-06-24 03:51:29 UTC) #13
kouhei (in TOK)
Thank you for your comments. > Can you update histograms.xml with the new UMA? Done. ...
7 years, 6 months ago (2013-06-24 05:51:09 UTC) #14
cbentzel
Thanks for the additional discussion and code review comments. This makes it more clear why ...
7 years, 5 months ago (2013-06-24 10:48:39 UTC) #15
kouhei (in TOK)
https://codereview.chromium.org/16514008/diff/35002/chrome/browser/net/predictor.h File chrome/browser/net/predictor.h (right): https://codereview.chromium.org/16514008/diff/35002/chrome/browser/net/predictor.h#newcode236 chrome/browser/net/predictor.h:236: // May be called from either the IO or ...
7 years, 5 months ago (2013-06-25 03:33:50 UTC) #16
kouhei (in TOK)
On 2013/06/24 10:48:39, cbentzel wrote: > Thanks for the additional discussion and code review comments. ...
7 years, 5 months ago (2013-07-01 01:21:46 UTC) #17
cbentzel
On 2013/07/01 01:21:46, kouhei wrote: > On 2013/06/24 10:48:39, cbentzel wrote: > > Thanks for ...
7 years, 5 months ago (2013-07-05 15:43:47 UTC) #18
cbentzel
On 2013/07/05 15:43:47, cbentzel wrote: > On 2013/07/01 01:21:46, kouhei wrote: > > On 2013/06/24 ...
7 years, 4 months ago (2013-07-24 17:30:59 UTC) #19
kouhei (in TOK)
Thanks for your comments! > OK, finally back on this. > > I think jar ...
7 years, 4 months ago (2013-07-26 06:45:30 UTC) #20
kouhei (in TOK)
Ok. I re-worked the patch. I will think this over again this weekend if this ...
7 years, 4 months ago (2013-07-26 10:45:21 UTC) #21
cbentzel
On 2013/07/26 10:45:21, kouhei wrote: > Ok. I re-worked the patch. I will think this ...
7 years, 4 months ago (2013-07-26 13:19:45 UTC) #22
kouhei (in TOK)
On 2013/07/26 13:19:45, cbentzel wrote: > On 2013/07/26 10:45:21, kouhei wrote: > > Ok. I ...
7 years, 4 months ago (2013-07-28 23:43:35 UTC) #23
kouhei (in TOK)
jar: Would you take a look again? The CL has updated since your last review. ...
7 years, 4 months ago (2013-07-29 05:50:26 UTC) #24
kouhei (in TOK)
> jar: Would you take a look again? The CL has updated since your last ...
7 years, 4 months ago (2013-08-01 01:37:57 UTC) #25
kouhei (in TOK)
On 2013/08/01 01:37:57, kouhei wrote: > > jar: Would you take a look again? The ...
7 years, 4 months ago (2013-08-01 02:16:59 UTC) #26
jar (doing other things)
More stats, and understanding of how well this works (or doesn't work) is very good. ...
7 years, 4 months ago (2013-08-01 22:56:46 UTC) #27
kouhei (in TOK)
Thanks for review! Comments inline. https://codereview.chromium.org/16514008/diff/70005/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/16514008/diff/70005/chrome/browser/net/predictor.cc#newcode130 chrome/browser/net/predictor.cc:130: // This records UMAs ...
7 years, 4 months ago (2013-08-02 06:18:03 UTC) #28
kouhei (in TOK)
sky: Would you take a look at chrome/browser/renderer_host/chrome_render_message_filter.cc and chrome_browser/ui/browser_tab_contents.cc? isherman: Would you take a ...
7 years, 4 months ago (2013-08-02 07:48:08 UTC) #29
Ilya Sherman
https://codereview.chromium.org/16514008/diff/92001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/16514008/diff/92001/tools/metrics/histograms/histograms.xml#newcode6581 tools/metrics/histograms/histograms.xml:6581: <histogram name="Net.PreconnectTriggerused" enum="PreconnectTriggerUsed"> nit: "used" -> "Used" https://codereview.chromium.org/16514008/diff/92001/tools/metrics/histograms/histograms.xml#newcode20113 tools/metrics/histograms/histograms.xml:20113: ...
7 years, 4 months ago (2013-08-02 23:11:58 UTC) #30
kouhei (in TOK)
Thanks for your comments! sky: Would you take a look at chrome/browser/renderer_host/chrome_render_message_filter.cc and chrome_browser/ui/browser_tab_contents.cc? isherman: ...
7 years, 4 months ago (2013-08-05 01:13:30 UTC) #31
sky
browser_tab_contents.cc LGTM I'm not a good owner for chrome_render_message_filter.cc though.
7 years, 4 months ago (2013-08-05 17:10:35 UTC) #32
kouhei (in TOK)
Thanks for review! jochen: Would you take a look at chrome_render_message_filter.cc? isherman: Would you take ...
7 years, 4 months ago (2013-08-06 01:15:45 UTC) #33
jochen (gone - plz use gerrit)
https://codereview.chromium.org/16514008/diff/105001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/16514008/diff/105001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode202 chrome/browser/renderer_host/chrome_render_message_filter.cc:202: BrowserThread::PostTask( wouldn't it be more stable if you did ...
7 years, 4 months ago (2013-08-06 01:23:09 UTC) #34
kouhei (in TOK)
jochen: Updated patch. Would you take a look? https://codereview.chromium.org/16514008/diff/105001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/16514008/diff/105001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode202 chrome/browser/renderer_host/chrome_render_message_filter.cc:202: BrowserThread::PostTask( ...
7 years, 4 months ago (2013-08-06 03:23:11 UTC) #35
jochen (gone - plz use gerrit)
lgtm
7 years, 4 months ago (2013-08-06 03:26:40 UTC) #36
kouhei (in TOK)
Thanks for review! isherman: Would you take a look at histograms.xml again?
7 years, 4 months ago (2013-08-06 03:29:40 UTC) #37
Ilya Sherman
histograms lgtm
7 years, 4 months ago (2013-08-06 06:44:03 UTC) #38
kouhei (in TOK)
On 2013/08/06 06:44:03, Ilya Sherman (Away Aug. 9-25) wrote: > histograms lgtm Thanks for review!
7 years, 4 months ago (2013-08-06 06:49:43 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/16514008/122001
7 years, 4 months ago (2013-08-06 06:49:44 UTC) #40
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 09:12:30 UTC) #41
Message was sent while issue was closed.
Change committed as 215858

Powered by Google App Engine
This is Rietveld 408576698