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

Issue 10900037: Adding more histograms to ResourcePrefetchPredictor. (Closed)

Created:
8 years, 3 months ago by Shishir
Modified:
8 years, 3 months ago
Reviewers:
dominich, tburkard, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Adding more histograms to ResourcePrefetchPredictor. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154855

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressing Dominich's comments. #

Patch Set 3 : Changes based on renaming recommendations. #

Total comments: 4

Patch Set 4 : Addressing Dominich's comments. #

Patch Set 5 : ResourcePrefetchPredictor can only be enabled at startup. #

Total comments: 2

Patch Set 6 : Disabling resource prefetch predictor on OffTheRecord profile. #

Patch Set 7 : Rebasing and minor fix. #

Patch Set 8 : Fixing issue with histograms not initializing correctly. #

Total comments: 2

Patch Set 9 : Adding macros to avoid having to use STATIC_HISTOGRAM_POINTER_BLOCK. #

Total comments: 2

Patch Set 10 : Addressing Matt's comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -45 lines) Patch
M chrome/browser/net/resource_prefetch_predictor_observer.cc View 1 2 3 4 5 6 7 8 9 7 chunks +69 lines, -2 lines 3 comments Download
M chrome/browser/predictors/predictor_database.cc View 1 2 3 4 5 4 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.h View 5 8 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 2 3 4 5 6 7 8 17 chunks +164 lines, -39 lines 0 comments Download
M chrome/browser/prerender/prerender_field_trial.cc View 1 2 3 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (0 generated)
Shishir
PTAL. mmenke for chrome/browser/net/... changes.
8 years, 3 months ago (2012-08-29 22:21:09 UTC) #1
dominich
https://chromiumcodereview.appspot.com/10900037/diff/1/chrome/browser/net/resource_prefetch_predictor_observer.cc File chrome/browser/net/resource_prefetch_predictor_observer.cc (right): https://chromiumcodereview.appspot.com/10900037/diff/1/chrome/browser/net/resource_prefetch_predictor_observer.cc#newcode40 chrome/browser/net/resource_prefetch_predictor_observer.cc:40: UMA_HISTOGRAM_BOOLEAN("ResourcePrefetchPredictor.NoResourceRequestInfo", you can also use HISTOGRAM_ENUMERATION with the parameters ...
8 years, 3 months ago (2012-08-29 22:29:29 UTC) #2
Shishir
https://chromiumcodereview.appspot.com/10900037/diff/1/chrome/browser/net/resource_prefetch_predictor_observer.cc File chrome/browser/net/resource_prefetch_predictor_observer.cc (right): https://chromiumcodereview.appspot.com/10900037/diff/1/chrome/browser/net/resource_prefetch_predictor_observer.cc#newcode40 chrome/browser/net/resource_prefetch_predictor_observer.cc:40: UMA_HISTOGRAM_BOOLEAN("ResourcePrefetchPredictor.NoResourceRequestInfo", On 2012/08/29 22:29:29, dominich wrote: > you can ...
8 years, 3 months ago (2012-08-29 22:51:05 UTC) #3
dominich
https://chromiumcodereview.appspot.com/10900037/diff/1/chrome/browser/net/resource_prefetch_predictor_observer.cc File chrome/browser/net/resource_prefetch_predictor_observer.cc (right): https://chromiumcodereview.appspot.com/10900037/diff/1/chrome/browser/net/resource_prefetch_predictor_observer.cc#newcode40 chrome/browser/net/resource_prefetch_predictor_observer.cc:40: UMA_HISTOGRAM_BOOLEAN("ResourcePrefetchPredictor.NoResourceRequestInfo", On 2012/08/29 22:51:06, Shishir wrote: > On 2012/08/29 ...
8 years, 3 months ago (2012-08-29 23:16:49 UTC) #4
tburkard
lgtm See my comments re: histograms.xml, this may require renaming some of the histograms here ...
8 years, 3 months ago (2012-08-29 23:40:39 UTC) #5
Shishir
PTAL. http://chromiumcodereview.appspot.com/10900037/diff/1/chrome/browser/net/resource_prefetch_predictor_observer.cc File chrome/browser/net/resource_prefetch_predictor_observer.cc (right): http://chromiumcodereview.appspot.com/10900037/diff/1/chrome/browser/net/resource_prefetch_predictor_observer.cc#newcode40 chrome/browser/net/resource_prefetch_predictor_observer.cc:40: UMA_HISTOGRAM_BOOLEAN("ResourcePrefetchPredictor.NoResourceRequestInfo", On 2012/08/29 23:16:49, dominich wrote: > On ...
8 years, 3 months ago (2012-08-30 03:58:36 UTC) #6
mmenke
I'm not familiar with this code, and have been pretty busy with reviews this week, ...
8 years, 3 months ago (2012-08-30 14:31:39 UTC) #7
dominich
http://codereview.chromium.org/10900037/diff/12001/chrome/browser/predictors/predictor_database.cc File chrome/browser/predictors/predictor_database.cc (right): http://codereview.chromium.org/10900037/diff/12001/chrome/browser/predictors/predictor_database.cc#newcode50 chrome/browser/predictors/predictor_database.cc:50: Profile* const profile_; caching the profile pointer is rarely ...
8 years, 3 months ago (2012-08-30 16:07:31 UTC) #8
Shishir
http://chromiumcodereview.appspot.com/10900037/diff/12001/chrome/browser/predictors/predictor_database.cc File chrome/browser/predictors/predictor_database.cc (right): http://chromiumcodereview.appspot.com/10900037/diff/12001/chrome/browser/predictors/predictor_database.cc#newcode50 chrome/browser/predictors/predictor_database.cc:50: Profile* const profile_; On 2012/08/30 16:07:31, dominich wrote: > ...
8 years, 3 months ago (2012-08-30 17:56:42 UTC) #9
Shishir
PTAL
8 years, 3 months ago (2012-08-30 18:18:55 UTC) #10
dominich
lgtm https://chromiumcodereview.appspot.com/10900037/diff/15007/chrome/browser/prerender/prerender_field_trial.cc File chrome/browser/prerender/prerender_field_trial.cc (left): https://chromiumcodereview.appspot.com/10900037/diff/15007/chrome/browser/prerender/prerender_field_trial.cc#oldcode278 chrome/browser/prerender/prerender_field_trial.cc:278: if (!profile) this might mean that tests with ...
8 years, 3 months ago (2012-08-30 18:25:23 UTC) #11
Shishir
https://chromiumcodereview.appspot.com/10900037/diff/15007/chrome/browser/prerender/prerender_field_trial.cc File chrome/browser/prerender/prerender_field_trial.cc (left): https://chromiumcodereview.appspot.com/10900037/diff/15007/chrome/browser/prerender/prerender_field_trial.cc#oldcode278 chrome/browser/prerender/prerender_field_trial.cc:278: if (!profile) On 2012/08/30 18:25:23, dominich wrote: > this ...
8 years, 3 months ago (2012-08-30 18:48:09 UTC) #12
Shishir
PTAL.
8 years, 3 months ago (2012-08-30 19:18:19 UTC) #13
dominich
lgtm
8 years, 3 months ago (2012-08-30 19:22:48 UTC) #14
tburkard
lgtm
8 years, 3 months ago (2012-08-30 21:07:21 UTC) #15
tburkard
lgtm
8 years, 3 months ago (2012-08-30 21:07:22 UTC) #16
Shishir
PTAL.
8 years, 3 months ago (2012-08-31 19:46:51 UTC) #17
dominich
https://chromiumcodereview.appspot.com/10900037/diff/15009/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://chromiumcodereview.appspot.com/10900037/diff/15009/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode820 chrome/browser/predictors/resource_prefetch_predictor.cc:820: UMA_HISTOGRAM_COUNTS( if you define a macro that takes 25 ...
8 years, 3 months ago (2012-08-31 20:40:45 UTC) #18
Shishir
https://chromiumcodereview.appspot.com/10900037/diff/15009/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://chromiumcodereview.appspot.com/10900037/diff/15009/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode820 chrome/browser/predictors/resource_prefetch_predictor.cc:820: UMA_HISTOGRAM_COUNTS( On 2012/08/31 20:40:45, dominich wrote: > if you ...
8 years, 3 months ago (2012-08-31 21:03:31 UTC) #19
dominich
LGTM
8 years, 3 months ago (2012-08-31 21:06:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10900037/27003
8 years, 3 months ago (2012-09-04 16:49:57 UTC) #21
commit-bot: I haz the power
Presubmit check for 10900037-27003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-04 16:50:00 UTC) #22
Shishir
Matt, can you look at this? Needs approval for chrome/browser/net still
8 years, 3 months ago (2012-09-04 16:51:16 UTC) #23
mmenke
browser/net LGTM. http://codereview.chromium.org/10900037/diff/27003/chrome/browser/net/resource_prefetch_predictor_observer.cc File chrome/browser/net/resource_prefetch_predictor_observer.cc (right): http://codereview.chromium.org/10900037/diff/27003/chrome/browser/net/resource_prefetch_predictor_observer.cc#newcode54 chrome/browser/net/resource_prefetch_predictor_observer.cc:54: UMA_HISTOGRAM_ENUMERATION("ResourcePrefetchPredictor.RequestStats", Rather than duplicate these two strings ...
8 years, 3 months ago (2012-09-04 17:19:46 UTC) #24
Shishir
http://codereview.chromium.org/10900037/diff/27003/chrome/browser/net/resource_prefetch_predictor_observer.cc File chrome/browser/net/resource_prefetch_predictor_observer.cc (right): http://codereview.chromium.org/10900037/diff/27003/chrome/browser/net/resource_prefetch_predictor_observer.cc#newcode54 chrome/browser/net/resource_prefetch_predictor_observer.cc:54: UMA_HISTOGRAM_ENUMERATION("ResourcePrefetchPredictor.RequestStats", On 2012/09/04 17:19:46, Matt Menke wrote: > Rather ...
8 years, 3 months ago (2012-09-04 17:30:55 UTC) #25
mmenke
On 2012/09/04 17:30:55, Shishir wrote: > http://codereview.chromium.org/10900037/diff/27003/chrome/browser/net/resource_prefetch_predictor_observer.cc > File chrome/browser/net/resource_prefetch_predictor_observer.cc (right): > > http://codereview.chromium.org/10900037/diff/27003/chrome/browser/net/resource_prefetch_predictor_observer.cc#newcode54 > ...
8 years, 3 months ago (2012-09-04 17:32:32 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10900037/27003
8 years, 3 months ago (2012-09-04 17:58:12 UTC) #27
Shishir
On 2012/09/04 17:32:32, Matt Menke wrote: > On 2012/09/04 17:30:55, Shishir wrote: > > > ...
8 years, 3 months ago (2012-09-04 17:59:10 UTC) #28
Shishir
Apparently the commit bot can be stopped. PTAL.
8 years, 3 months ago (2012-09-04 18:09:13 UTC) #29
mmenke
Just what I had had in mind, LGTM. With copying strings all over the file, ...
8 years, 3 months ago (2012-09-04 18:14:01 UTC) #30
Shishir
http://codereview.chromium.org/10900037/diff/20004/chrome/browser/net/resource_prefetch_predictor_observer.cc File chrome/browser/net/resource_prefetch_predictor_observer.cc (right): http://codereview.chromium.org/10900037/diff/20004/chrome/browser/net/resource_prefetch_predictor_observer.cc#newcode41 chrome/browser/net/resource_prefetch_predictor_observer.cc:41: void ReportRequestStats(RequestStats stat) { On 2012/09/04 18:14:01, Matt Menke ...
8 years, 3 months ago (2012-09-04 19:15:19 UTC) #31
mmenke
http://codereview.chromium.org/10900037/diff/20004/chrome/browser/net/resource_prefetch_predictor_observer.cc File chrome/browser/net/resource_prefetch_predictor_observer.cc (right): http://codereview.chromium.org/10900037/diff/20004/chrome/browser/net/resource_prefetch_predictor_observer.cc#newcode41 chrome/browser/net/resource_prefetch_predictor_observer.cc:41: void ReportRequestStats(RequestStats stat) { On 2012/09/04 19:15:19, Shishir wrote: ...
8 years, 3 months ago (2012-09-04 19:16:41 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10900037/20004
8 years, 3 months ago (2012-09-04 19:27:07 UTC) #33
commit-bot: I haz the power
8 years, 3 months ago (2012-09-04 23:48:30 UTC) #34
Change committed as 154855

Powered by Google App Engine
This is Rietveld 408576698