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

Issue 2936005: Compress and checksum pending logs that are going to be persisted. ... (Closed)

Created:
10 years, 5 months ago by ziadh
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Compress and checksum pending logs that are going to be persisted. Persisted logs now have the following format: [list_size, log1, log2, ..., log_n, checksum]. where each log is bzipped before being written. Upon reading the logs from disk, we verify the data and register whether we faced corruptions or not. r=jar Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52885

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 32

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 18

Patch Set 15 : '' #

Patch Set 16 : '' #

Total comments: 9

Patch Set 17 : '' #

Total comments: 10

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Total comments: 6

Patch Set 24 : '' #

Patch Set 25 : '' #

Patch Set 26 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -90 lines) Patch
M base/histogram.h View 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
M base/histogram.cc View 19 20 21 22 23 24 1 chunk +3 lines, -3 lines 0 comments Download
M base/values.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/metrics_service.h View 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +41 lines, -1 line 1 comment Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 13 chunks +154 lines, -66 lines 0 comments Download
M chrome/browser/metrics/metrics_service_unittest.cc View 15 16 17 18 19 20 21 22 23 2 chunks +179 lines, -0 lines 0 comments Download
M chrome/browser/net/url_info.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/metrics_helpers.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/common/metrics_helpers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -3 lines 0 comments Download
M chrome_frame/metrics_service.cc View 17 18 1 chunk +5 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
ziadh
Hi jar, Please let me know what you think. I'm going to add the histograms ...
10 years, 5 months ago (2010-07-15 01:53:45 UTC) #1
jar (doing other things)
Thanks for providing the CL! I'm really looking forward to seeing this deployed in the ...
10 years, 5 months ago (2010-07-15 06:05:54 UTC) #2
jar (doing other things)
This is looking very good. There are a few nits below, and we need some ...
10 years, 5 months ago (2010-07-16 01:21:46 UTC) #3
ziadh
http://codereview.chromium.org/2936005/diff/45001/46002 File chrome/browser/metrics/metrics_service.cc (right): http://codereview.chromium.org/2936005/diff/45001/46002#newcode255 chrome/browser/metrics/metrics_service.cc:255: static const size_t kMaxInitialLogsPersisted = 20 + 2; // ...
10 years, 5 months ago (2010-07-16 20:50:01 UTC) #4
jar (doing other things)
You should probably break the tests into separate functions. It was (for example) hard to ...
10 years, 5 months ago (2010-07-16 22:09:53 UTC) #5
jar (doing other things)
Please break the tests up into smaller blocks, and try to use EXPECT as much ...
10 years, 5 months ago (2010-07-17 01:10:52 UTC) #6
ziadh
http://codereview.chromium.org/2936005/diff/83001/62003 File chrome/browser/metrics/metrics_service.cc (right): http://codereview.chromium.org/2936005/diff/83001/62003#newcode1188 chrome/browser/metrics/metrics_service.cc:1188: MakeRecallStatusHistogram(LIST_SIZE_CORRUPTION); On 2010/07/16 22:09:53, jar wrote: > You might ...
10 years, 5 months ago (2010-07-17 01:21:24 UTC) #7
ziadh
http://codereview.chromium.org/2936005/diff/70003/83005 File chrome/browser/metrics/metrics_service_unittest.cc (right): http://codereview.chromium.org/2936005/diff/70003/83005#newcode10 chrome/browser/metrics/metrics_service_unittest.cc:10: #include "base/md5.h" On 2010/07/17 01:10:52, jar wrote: > nit: ...
10 years, 5 months ago (2010-07-18 01:53:45 UTC) #8
jar (doing other things)
LGTM ...but please have a look at the nits below http://codereview.chromium.org/2936005/diff/76004/59009 File chrome/browser/metrics/metrics_service.cc (right): http://codereview.chromium.org/2936005/diff/76004/59009#newcode1167 ...
10 years, 5 months ago (2010-07-19 07:08:03 UTC) #9
ziadh
http://codereview.chromium.org/2936005/diff/76004/59009 File chrome/browser/metrics/metrics_service.cc (right): http://codereview.chromium.org/2936005/diff/76004/59009#newcode1167 chrome/browser/metrics/metrics_service.cc:1167: return MakeRecallStatusHistogram(LIST_EMPTY); On 2010/07/19 07:08:03, jar wrote: > IMO, ...
10 years, 5 months ago (2010-07-19 07:39:39 UTC) #10
stuartmorgan
9 years, 9 months ago (2011-03-17 21:15:54 UTC) #11
http://codereview.chromium.org/2936005/diff/63005/chrome/browser/metrics/metr...
File chrome/browser/metrics/metrics_service.h (right):

http://codereview.chromium.org/2936005/diff/63005/chrome/browser/metrics/metr...
chrome/browser/metrics/metrics_service.h:100: // on.
Is this experiment still going on? 8 months is a long "temporarily"
(There's a lot of code in this class; if this isn't still being used it would be
nice to take it out and make things that much simpler.)

Powered by Google App Engine
This is Rietveld 408576698