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

Issue 10829466: SampleSet -> HistogramSamples (will be reused by SparseHistogram) (Closed)

Created:
8 years, 4 months ago by kaiwang
Modified:
8 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, erikwright (departed), brettw-cc_chromium.org, jam, MAD, joi+watch-content_chromium.org, wtc, darin-cc_chromium.org, rkn, erikwright+watch_chromium.org, Ilya Sherman, jar (doing other things), brettw, rvargas (doing something else)
Visibility:
Public.

Description

SampleSet -> HistogramSamples which can be reused by SparseHistogram BUG=139612 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158166

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 126

Patch Set 6 : #

Total comments: 51

Patch Set 7 : #

Total comments: 7

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 49

Patch Set 12 : #

Patch Set 13 : #

Total comments: 5

Patch Set 14 : #

Total comments: 14

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1201 lines, -583 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M base/metrics/bucket_ranges.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M base/metrics/histogram.h View 1 2 3 4 5 6 7 8 9 10 10 chunks +26 lines, -72 lines 0 comments Download
M base/metrics/histogram.cc View 1 2 3 4 5 6 7 8 9 10 18 chunks +46 lines, -182 lines 0 comments Download
M base/metrics/histogram_flattener.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
A base/metrics/histogram_samples.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +89 lines, -0 lines 0 comments Download
A base/metrics/histogram_samples.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +126 lines, -0 lines 0 comments Download
M base/metrics/histogram_snapshot_manager.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -12 lines 0 comments Download
M base/metrics/histogram_snapshot_manager.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +47 lines, -42 lines 0 comments Download
M base/metrics/histogram_unittest.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +41 lines, -39 lines 0 comments Download
A base/metrics/sample_vector.h View 1 2 3 4 5 6 7 8 9 1 chunk +81 lines, -0 lines 0 comments Download
A base/metrics/sample_vector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +160 lines, -0 lines 0 comments Download
A base/metrics/sample_vector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +265 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_application_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/net/http_pipelining_compatibility_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +41 lines, -29 lines 0 comments Download
M chrome/browser/protector/default_search_provider_change_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/metrics/metrics_log_base.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 0 comments Download
M chrome/common/metrics/metrics_log_base.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +32 lines, -17 lines 0 comments Download
M chrome/common/metrics/metrics_service_base.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 0 comments Download
M chrome/common/metrics/metrics_service_base.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/uma_histogram_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +11 lines, -6 lines 0 comments Download
M chrome/test/base/uma_histogram_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +31 lines, -28 lines 0 comments Download
M chrome_frame/metrics_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M content/common/child_histogram_message_filter.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 0 comments Download
M content/common/child_histogram_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -3 lines 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -9 lines 0 comments Download
M net/disk_cache/stats.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 0 comments Download
M net/disk_cache/stats.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -6 lines 0 comments Download
M net/disk_cache/stats_histogram.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +18 lines, -20 lines 0 comments Download
M net/disk_cache/stats_histogram.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +41 lines, -36 lines 0 comments Download
M net/socket_stream/socket_stream_metrics_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +49 lines, -45 lines 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +24 lines, -15 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
kaiwang
8 years, 4 months ago (2012-08-21 23:20:27 UTC) #1
Ilya Sherman
This CL is simultaneously large and non-trivial, which makes it hard to review. Can you ...
8 years, 4 months ago (2012-08-23 07:50:54 UTC) #2
kaiwang
Thanks for your review! Sorry it's quite big. But you can treat it as 2 ...
8 years, 4 months ago (2012-08-24 04:17:57 UTC) #3
Ilya Sherman
https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.cc#newcode38 base/metrics/histogram.cc:38: CHECK_GE(bucket_ranges_->size(), 2u); On 2012/08/24 04:17:58, kaiwang wrote: > This ...
8 years, 3 months ago (2012-08-29 08:48:15 UTC) #4
kaiwang
http://codereview.chromium.org/10829466/diff/31007/base/metrics/histogram.cc File base/metrics/histogram.cc (left): http://codereview.chromium.org/10829466/diff/31007/base/metrics/histogram.cc#oldcode454 base/metrics/histogram.cc:454: // Note locking not done in this version!!! Lock ...
8 years, 3 months ago (2012-08-29 22:42:16 UTC) #5
Ilya Sherman
Please try to reply to all comments other than optional nits and other such minor ...
8 years, 3 months ago (2012-08-29 23:41:27 UTC) #6
Ilya Sherman
+Brett, John for question regarding CHECK vs. DCHECK. https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.cc#newcode38 base/metrics/histogram.cc:38: CHECK_GE(bucket_ranges_->size(), ...
8 years, 3 months ago (2012-08-29 23:45:59 UTC) #7
kaiwang
Sorry I only scanned the most recent snapshot and didn't noticed other comments. https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.h File ...
8 years, 3 months ago (2012-08-30 03:13:21 UTC) #8
Ilya Sherman
https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.h File base/metrics/histogram.h (right): https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.h#newcode349 base/metrics/histogram.h:349: class BASE_EXPORT_PRIVATE BucketHistogramSamples : public HistogramSamples { On 2012/08/30 ...
8 years, 3 months ago (2012-08-30 07:57:39 UTC) #9
jar (doing other things)
Drive by comments based on some chatting with Kai. https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.cc File base/metrics/histogram.cc (left): https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.cc#oldcode331 base/metrics/histogram.cc:331: ...
8 years, 3 months ago (2012-08-30 22:54:38 UTC) #10
Ilya Sherman
https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.h File base/metrics/histogram.h (right): https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.h#newcode349 base/metrics/histogram.h:349: class BASE_EXPORT_PRIVATE BucketHistogramSamples : public HistogramSamples { On 2012/08/30 ...
8 years, 3 months ago (2012-08-30 23:01:46 UTC) #11
kaiwang
https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.cc File base/metrics/histogram.cc (left): https://chromiumcodereview.appspot.com/10829466/diff/15003/base/metrics/histogram.cc#oldcode331 base/metrics/histogram.cc:331: !sample.Histogram::SampleSet::Deserialize(&iter)) { See line 387, it adds all samples ...
8 years, 3 months ago (2012-09-07 01:14:11 UTC) #12
kaiwang
Added GetBucketIndex support
8 years, 3 months ago (2012-09-07 03:45:07 UTC) #13
kaiwang
Reviewers, please help to review this CL: jar: base, net and chrome/browser/net isherman: base/metrics sky: ...
8 years, 3 months ago (2012-09-07 22:59:28 UTC) #14
Avi (use Gerrit)
content lgtm
8 years, 3 months ago (2012-09-07 23:20:26 UTC) #15
sky
LGTM http://codereview.chromium.org/10829466/diff/53008/base/metrics/histogram_samples.h File base/metrics/histogram_samples.h (right): http://codereview.chromium.org/10829466/diff/53008/base/metrics/histogram_samples.h#newcode37 base/metrics/histogram_samples.h:37: virtual scoped_ptr<SampleCountIterator> Iterator() const = 0; It's very ...
8 years, 3 months ago (2012-09-08 00:00:25 UTC) #16
Ilya Sherman
Nearly there :) https://chromiumcodereview.appspot.com/10829466/diff/53008/base/metrics/histogram.h File base/metrics/histogram.h (right): https://chromiumcodereview.appspot.com/10829466/diff/53008/base/metrics/histogram.h#newcode345 base/metrics/histogram.h:345: class SampleVector; nit: Please leave these ...
8 years, 3 months ago (2012-09-12 03:20:58 UTC) #17
kaiwang
http://codereview.chromium.org/10829466/diff/53008/base/metrics/histogram.h File base/metrics/histogram.h (right): http://codereview.chromium.org/10829466/diff/53008/base/metrics/histogram.h#newcode345 base/metrics/histogram.h:345: class SampleVector; it's suggested by Jim, because BucketRanges and ...
8 years, 3 months ago (2012-09-20 22:54:59 UTC) #18
kaiwang
For the code under net/, I'll consult Jim to get the owner's opinion first
8 years, 3 months ago (2012-09-20 23:40:58 UTC) #19
jar (doing other things)
drive by.... for net/disk_cache/*, be sure to get reviews and closure from Ricardo (I added ...
8 years, 3 months ago (2012-09-21 00:15:12 UTC) #20
erikwright (departed)
chrome_frame/* LGTM
8 years, 3 months ago (2012-09-21 01:19:25 UTC) #21
rvargas (doing something else)
net lgtm http://codereview.chromium.org/10829466/diff/70004/net/socket_stream/socket_stream_metrics_unittest.cc File net/socket_stream/socket_stream_metrics_unittest.cc (right): http://codereview.chromium.org/10829466/diff/70004/net/socket_stream/socket_stream_metrics_unittest.cc#newcode51 net/socket_stream/socket_stream_metrics_unittest.cc:51: EXPECT_EQ( nit: EXPECT_EQ(3, samples...); http://codereview.chromium.org/10829466/diff/70004/net/url_request/url_request_throttler_unittest.cc File net/url_request/url_request_throttler_unittest.cc ...
8 years, 3 months ago (2012-09-21 01:30:52 UTC) #22
kaiwang
Talked to rvargas. Will keep the scoped_ptr return value for now http://codereview.chromium.org/10829466/diff/70004/net/socket_stream/socket_stream_metrics_unittest.cc File net/socket_stream/socket_stream_metrics_unittest.cc (right): ...
8 years, 3 months ago (2012-09-21 02:51:22 UTC) #23
Ilya Sherman
LGTM with a last few nits https://chromiumcodereview.appspot.com/10829466/diff/53008/chrome/common/metrics/metrics_log_base.cc File chrome/common/metrics/metrics_log_base.cc (left): https://chromiumcodereview.appspot.com/10829466/diff/53008/chrome/common/metrics/metrics_log_base.cc#oldcode455 chrome/common/metrics/metrics_log_base.cc:455: DCHECK_EQ(histogram.bucket_count(), snapshot.size()); On ...
8 years, 3 months ago (2012-09-21 08:52:11 UTC) #24
kaiwang
https://chromiumcodereview.appspot.com/10829466/diff/53008/chrome/common/metrics/metrics_log_base.cc File chrome/common/metrics/metrics_log_base.cc (left): https://chromiumcodereview.appspot.com/10829466/diff/53008/chrome/common/metrics/metrics_log_base.cc#oldcode455 chrome/common/metrics/metrics_log_base.cc:455: DCHECK_EQ(histogram.bucket_count(), snapshot.size()); Sorry I didn't make it clear. HistogramSamples ...
8 years, 3 months ago (2012-09-21 19:51:18 UTC) #25
jar (doing other things)
base gyp stuff, and chrome/browser/net LGTM https://chromiumcodereview.appspot.com/10829466/diff/70004/net/disk_cache/stats_histogram.h File net/disk_cache/stats_histogram.h (right): https://chromiumcodereview.appspot.com/10829466/diff/70004/net/disk_cache/stats_histogram.h#newcode16 net/disk_cache/stats_histogram.h:16: class HistogramSamples; tiny ...
8 years, 3 months ago (2012-09-21 19:57:41 UTC) #26
kaiwang
https://chromiumcodereview.appspot.com/10829466/diff/70004/net/disk_cache/stats_histogram.h File net/disk_cache/stats_histogram.h (right): https://chromiumcodereview.appspot.com/10829466/diff/70004/net/disk_cache/stats_histogram.h#newcode16 net/disk_cache/stats_histogram.h:16: class HistogramSamples; On 2012/09/21 19:57:41, jar wrote: > tiny ...
8 years, 3 months ago (2012-09-21 19:59:35 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/10829466/73022
8 years, 3 months ago (2012-09-21 23:26:16 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/10829466/65055
8 years, 3 months ago (2012-09-22 00:48:46 UTC) #29
commit-bot: I haz the power
8 years, 3 months ago (2012-09-22 03:42:14 UTC) #30
Change committed as 158166

Powered by Google App Engine
This is Rietveld 408576698