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

Issue 2287993003: [NoStatePrefetch] Add UMA histogram to count prefetch requests (Closed)

Created:
4 years, 3 months ago by droger
Modified:
4 years, 3 months ago
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NoStatePrefetch] Add UMA histogram to count prefetch requests The prefetches are split into 4 categories: - main resource, cacheable - main resource, no-store - sub-resource, cacheable - sub-resource, no-store This will allow to count the number of prefetched pages, count how many sub resources are discovered on average, and how much no-store is prevalent. BUG=642371 Committed: https://crrev.com/81a292f669a97f97087a18c54558ae65efd094f7 Cr-Commit-Position: refs/heads/master@{#416889}

Patch Set 1 #

Patch Set 2 : histograms.xml #

Total comments: 3

Patch Set 3 : Move to prerender_histograms #

Patch Set 4 : Use the histogram factory #

Patch Set 5 : comment #

Total comments: 9

Patch Set 6 : review comments #

Total comments: 2

Patch Set 7 : review comments #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -6 lines) Patch
M chrome/browser/prerender/prerender_histograms.h View 1 2 3 4 5 6 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_histograms.cc View 1 2 3 4 5 6 7 3 chunks +38 lines, -4 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_resource_throttle.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_resource_throttle.cc View 1 2 3 4 5 6 chunks +42 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 3 chunks +19 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (20 generated)
droger
4 years, 3 months ago (2016-08-30 09:02:39 UTC) #4
droger
Note: I'm not sure if the histogram should go in prerender_histograms.cc or not. As I ...
4 years, 3 months ago (2016-08-30 09:07:54 UTC) #6
mattcary
On 2016/08/30 09:07:54, droger wrote: > Note: I'm not sure if the histogram should go ...
4 years, 3 months ago (2016-08-30 09:20:20 UTC) #7
droger
On 2016/08/30 09:20:20, mattcary wrote: > On 2016/08/30 09:07:54, droger wrote: > > Note: I'm ...
4 years, 3 months ago (2016-08-30 09:24:39 UTC) #8
pasko
Without looking at the change itself (which is next): On 2016/08/30 09:07:54, droger wrote: > ...
4 years, 3 months ago (2016-08-30 09:29:27 UTC) #9
mattcary
> I need to see all the individual requests (including sub resources). I don't > ...
4 years, 3 months ago (2016-08-30 09:42:17 UTC) #10
pasko
https://codereview.chromium.org/2287993003/diff/40001/chrome/browser/prerender/prerender_resource_throttle.cc File chrome/browser/prerender/prerender_resource_throttle.cc (right): https://codereview.chromium.org/2287993003/diff/40001/chrome/browser/prerender/prerender_resource_throttle.cc#newcode30 chrome/browser/prerender/prerender_resource_throttle.cc:30: enum NoStatePrefetchResourceType { nit: enum class is shiny and ...
4 years, 3 months ago (2016-08-30 09:43:33 UTC) #11
droger
Moved to prerender_histograms, and avoiding using the PREFIXED_HISTOGRAM macros on purpose, so that we can ...
4 years, 3 months ago (2016-08-30 11:23:18 UTC) #13
droger
On 2016/08/30 09:42:17, mattcary wrote: > Then I guess my suggestion is to add prefetch ...
4 years, 3 months ago (2016-08-30 13:22:06 UTC) #16
droger
On 2016/08/30 13:22:06, droger wrote: > On 2016/08/30 09:42:17, mattcary wrote: > > Then I ...
4 years, 3 months ago (2016-08-30 13:25:03 UTC) #17
pasko
The approach looks good I was hesitating with naming: * either "Prerender.NoStatePrefetch.*" * or straight ...
4 years, 3 months ago (2016-08-30 13:41:05 UTC) #18
droger
Thanks. https://codereview.chromium.org/2287993003/diff/120001/chrome/browser/prerender/prerender_histograms.cc File chrome/browser/prerender/prerender_histograms.cc (right): https://codereview.chromium.org/2287993003/diff/120001/chrome/browser/prerender/prerender_histograms.cc#newcode27 chrome/browser/prerender/prerender_histograms.cc:27: kMainResourceCacheable = 0, On 2016/08/30 13:41:04, pasko wrote: ...
4 years, 3 months ago (2016-08-30 14:31:42 UTC) #21
pasko
LGTM with minor suggestions Suggestion 1: please add BUG=642371 (just created this bug to group ...
4 years, 3 months ago (2016-08-30 15:11:19 UTC) #22
mattcary
On 2016/08/30 13:25:03, droger wrote: > On 2016/08/30 13:22:06, droger wrote: > > On 2016/08/30 ...
4 years, 3 months ago (2016-09-02 09:59:47 UTC) #24
droger
+mmenke as owner
4 years, 3 months ago (2016-09-02 15:29:34 UTC) #26
mmenke
On 2016/09/02 15:29:34, droger wrote: > +mmenke as owner LGTM, rubberstamp.
4 years, 3 months ago (2016-09-02 16:22:36 UTC) #27
droger
+asvitkine for histograms.xml
4 years, 3 months ago (2016-09-05 11:42:04 UTC) #29
Alexei Svitkine (slow)
lgtm
4 years, 3 months ago (2016-09-06 19:49:18 UTC) #34
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/2287993003/170001
4 years, 3 months ago (2016-09-07 08:22:24 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:170001)
4 years, 3 months ago (2016-09-07 09:34:10 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 09:36:30 UTC) #41
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/81a292f669a97f97087a18c54558ae65efd094f7
Cr-Commit-Position: refs/heads/master@{#416889}

Powered by Google App Engine
This is Rietveld 408576698