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

Issue 2718011: Initial commit of CookieMonster statistics. (Closed)

Created:
10 years, 6 months ago by Randy Smith (Not in Mondays)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Initial commit of CookieMonster statistics. Specifically: * Number of cookies, recorded every ten minutes of active browsing (i.e. cookies being requested from CookieMonster) * Last access time, recorded when cookie accessed. * Last access time for evicted cookies, recorded on eviction * Time until cookie expires, recorded on insertion. * Reason for a cookie being removed from store, recorded when removed. * Size of batch update to persistent cookie store and whether it succeeded or failed, recorded at success/failure. BUG=4005 TEST=net_unittests CookieMonster.* on Linux Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50477

Patch Set 1 #

Total comments: 16

Patch Set 2 : Incoporated comments, reworked and simplified number of cookies stats. #

Total comments: 20

Patch Set 3 : Incorporated another round of comments, changed time histogram usage, refactored code. #

Total comments: 33

Patch Set 4 : Attempt to restore PS4, incorporating last round of comments. #

Patch Set 5 : Fix perf degradation, add requested comment. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -19 lines) Patch
M chrome/browser/net/sqlite_persistent_cookie_store.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M net/base/cookie_monster.h View 1 2 3 4 5 chunks +24 lines, -2 lines 2 comments Download
M net/base/cookie_monster.cc View 1 2 3 4 17 chunks +66 lines, -16 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Randy Smith (Not in Mondays)
Andy, Eric: Would you take a look at this first pass for cookie monster statistics? ...
10 years, 6 months ago (2010-06-11 18:01:08 UTC) #1
ahendrickson
Bearing in mind that I don't know the cookie monster or histogram systems, it looks ...
10 years, 6 months ago (2010-06-11 18:58:33 UTC) #2
eroman
Some high level comments before I dive into the nits. http://codereview.chromium.org/2718011/diff/1/2 File chrome/browser/net/chrome_url_request_context.cc (right): http://codereview.chromium.org/2718011/diff/1/2#newcode237 ...
10 years, 6 months ago (2010-06-11 20:15:00 UTC) #3
Randy Smith (Not in Mondays)
I believe I've responded to all comments; could folks take another look? Jim: Could you ...
10 years, 6 months ago (2010-06-16 19:49:35 UTC) #4
jar (doing other things)
http://codereview.chromium.org/2718011/diff/8001/9001 File base/histogram.cc (right): http://codereview.chromium.org/2718011/diff/8001/9001#newcode505 base/histogram.cc:505: } Summary: I'd rather not see the above code ...
10 years, 6 months ago (2010-06-17 02:32:21 UTC) #5
eroman
Thanks for making those changes from earlier revision. Can you also update the CL description ...
10 years, 6 months ago (2010-06-17 19:13:15 UTC) #6
Randy Smith (Not in Mondays)
Another round, having incorporated comments and updated the CL description. Let me know what you ...
10 years, 6 months ago (2010-06-17 20:59:48 UTC) #7
eroman
lgtm with following comments. http://codereview.chromium.org/2718011/diff/18001/19002 File net/base/cookie_monster.cc (right): http://codereview.chromium.org/2718011/diff/18001/19002#newcode74 net/base/cookie_monster.cc:74: #define UMA_HISTOGRAM_MINUTES(name, sample) \ I ...
10 years, 6 months ago (2010-06-18 01:13:56 UTC) #8
jar (doing other things)
Small changes listed, relating heavily to ERoman's comments. http://codereview.chromium.org/2718011/diff/18001/19002 File net/base/cookie_monster.cc (right): http://codereview.chromium.org/2718011/diff/18001/19002#newcode74 net/base/cookie_monster.cc:74: #define ...
10 years, 6 months ago (2010-06-18 18:48:12 UTC) #9
Randy Smith (Not in Mondays)
Next round CL. Eric, I've pushed back on a couple of your comments, so if ...
10 years, 6 months ago (2010-06-18 19:20:30 UTC) #10
eroman
LGTM http://codereview.chromium.org/2718011/diff/18001/19002 File net/base/cookie_monster.cc (right): http://codereview.chromium.org/2718011/diff/18001/19002#newcode120 net/base/cookie_monster.cc:120: last_statistic_record_time_(Time::Now()) { On 2010/06/18 19:20:31, rdsmith wrote: > ...
10 years, 6 months ago (2010-06-18 20:05:34 UTC) #11
jar (doing other things)
All my comments were addressed... so LGTM (but be sure ERoman gives his LGTM too). ...
10 years, 6 months ago (2010-06-18 21:35:22 UTC) #12
Randy Smith (Not in Mondays)
Sorry, one more round. I'm good with just comments from Eric on this one. I ...
10 years, 6 months ago (2010-06-20 02:28:34 UTC) #13
eroman
Actually, I suggest using TimeTicks::Now() here rather than Time::Now(). TimeTicks::Now() is a bit faster, but ...
10 years, 6 months ago (2010-06-21 18:20:34 UTC) #14
eroman
http://codereview.chromium.org/2718011/diff/28002/34003 File net/base/cookie_monster.h (right): http://codereview.chromium.org/2718011/diff/28002/34003#newcode283 net/base/cookie_monster.h:283: void RecordPeriodicStats(const base::Time &current_time); style nit: |const base::Time& current_time|
10 years, 6 months ago (2010-06-21 18:22:43 UTC) #15
Randy Smith (Not in Mondays)
On 2010/06/21 18:20:34, eroman wrote: > Actually, I suggest using TimeTicks::Now() here rather than Time::Now(). ...
10 years, 6 months ago (2010-06-21 20:47:44 UTC) #16
darin (slow to review)
10 years, 5 months ago (2010-07-02 16:35:00 UTC) #17
http://codereview.chromium.org/2718011/diff/28002/34003
File net/base/cookie_monster.h (right):

http://codereview.chromium.org/2718011/diff/28002/34003#newcode235
net/base/cookie_monster.h:235: enum DeletionCause { kDeleteCookieExplicit,
"Though the style guide says to use kConstantNaming for enums now, we still use
MACRO_STYLE naming for enums for consistency with existing code."

Please see http://dev.chromium.org/developers/coding-style

Powered by Google App Engine
This is Rietveld 408576698