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

Issue 6340013: Add histogram to track prerender sessions (Closed)

Created:
9 years, 11 months ago by gavinp
Modified:
9 years, 6 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Add histogram to track prerender sessions BUG=70401 TEST=nope Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72800

Patch Set 1 #

Total comments: 4

Patch Set 2 : name the session types #

Total comments: 4

Patch Set 3 : remediate to review, merge with Timo's changes #

Total comments: 4

Patch Set 4 : fix initialization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -9 lines) Patch
M chrome/browser/browser_main.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 2 3 4 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 chunks +16 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
gavinp
9 years, 11 months ago (2011-01-23 00:05:57 UTC) #1
cbentzel
LGTM For test, make sure to at least validate that reasonable values show up in ...
9 years, 11 months ago (2011-01-23 12:32:47 UTC) #2
gavinp
On 2011/01/23 12:32:47, cbentzel wrote: > > For test, make sure to at least validate ...
9 years, 11 months ago (2011-01-23 14:27:10 UTC) #3
cbentzel
Still LGTM On Sun, Jan 23, 2011 at 9:27 AM, <gavinp@chromium.org> wrote: > > B) ...
9 years, 11 months ago (2011-01-23 14:30:59 UTC) #4
jar (doing other things)
Be sure to validate on try bots. See comment below. http://codereview.chromium.org/6340013/diff/1/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6340013/diff/1/chrome/browser/browser_main.cc#newcode1586 ...
9 years, 11 months ago (2011-01-23 20:15:53 UTC) #5
gavinp
Thanks for the reviews! I've now remediated to Jim's review; I created an enumeration to ...
9 years, 11 months ago (2011-01-24 06:01:46 UTC) #6
cbentzel
So, I had a misunderstanding for how about:flags worked. Basically, there is a per-profile preference ...
9 years, 11 months ago (2011-01-25 17:49:04 UTC) #7
cbentzel
And, it looks like r72404 landed yesterday which moves about:flags eval to browser_main [using browser ...
9 years, 11 months ago (2011-01-25 18:02:04 UTC) #8
gavinp
Jar: *ping* ? Chris, I think r72404 is a good thing. Also, this patch still ...
9 years, 11 months ago (2011-01-26 01:54:10 UTC) #9
cbentzel
http://codereview.chromium.org/6340013/diff/8001/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6340013/diff/8001/chrome/browser/browser_main.cc#newcode1585 chrome/browser/browser_main.cc:1585: UMA_HISTOGRAM_ENUMERATION( I'd really like this to be placed in ...
9 years, 11 months ago (2011-01-26 16:55:46 UTC) #10
jar (doing other things)
http://codereview.chromium.org/6340013/diff/8001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): http://codereview.chromium.org/6340013/diff/8001/chrome/browser/prerender/prerender_manager.cc#newcode21 chrome/browser/prerender/prerender_manager.cc:21: switches::kEnablePagePrerender)) nit: (I think) indent only 4 spaces from ...
9 years, 11 months ago (2011-01-26 21:31:32 UTC) #11
gavinp
Thanks for the reviews everyone! This latest upload changes the way the enumeration is initialized, ...
9 years, 11 months ago (2011-01-27 04:29:29 UTC) #12
cbentzel
LGTM I wish there was a way we could avoid the static'ness of mode, but ...
9 years, 11 months ago (2011-01-27 04:38:34 UTC) #13
gavinp
9 years, 11 months ago (2011-01-27 05:25:26 UTC) #14
This latest upload fixes the initialization, and it's what I'll commit tomorrow
morning if the tree's green.  :)

http://codereview.chromium.org/6340013/diff/21001/chrome/browser/browser_main.cc
File chrome/browser/browser_main.cc (right):

http://codereview.chromium.org/6340013/diff/21001/chrome/browser/browser_main...
chrome/browser/browser_main.cc:453: PrerenderManager::PrerenderManagerMode
prerender_mode;
On 2011/01/27 04:38:34, cbentzel wrote:
> Uninitialized values always scare me. Maybe change if/else to ternary, or
> initialize to DISABLED. 

Done.

http://codereview.chromium.org/6340013/diff/21001/chrome/browser/browser_main...
chrome/browser/browser_main.cc:460:
UMA_HISTOGRAM_ENUMERATION("Prerender.Sessions", prerender_mode,
On 2011/01/27 04:38:34, cbentzel wrote:
> Do we have other Prerender-prefixed histograms at this point, or is this the
> first one?

This is the first one.  I couldn't think of another group to put it in reviewing
them: ultimately I guess our histograms will be split between PLT and Prerender?

Powered by Google App Engine
This is Rietveld 408576698