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

Issue 17451016: [UMA] Remove redundant bucket_count variable from base::Histogram. (Closed)

Created:
7 years, 6 months ago by Ilya Sherman
Modified:
7 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jar (doing other things), asvitkine+watch_chromium.org, erikwright+watch_chromium.org, Ilya Sherman, mmenke, gavinp+disk_chromium.org
Visibility:
Public.

Description

[UMA] Remove redundant bucket_count variable from base::Histogram. BUG=248623 TEST=none R=jar@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208917

Patch Set 1 #

Total comments: 6

Patch Set 2 : Use hacker_case, initialize buckets for test #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Rename variables to be clearer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -72 lines) Patch
M base/metrics/bucket_ranges.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M base/metrics/bucket_ranges_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M base/metrics/histogram.h View 1 2 3 6 chunks +8 lines, -12 lines 0 comments Download
M base/metrics/histogram.cc View 1 2 3 13 chunks +24 lines, -31 lines 0 comments Download
M base/metrics/histogram_base.h View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M base/metrics/histogram_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M base/metrics/sample_vector.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M base/metrics/sample_vector_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/metrics/sparse_histogram.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M base/metrics/sparse_histogram.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M base/metrics/statistics_recorder_unittest.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M net/disk_cache/stats_histogram.h View 1 chunk +0 lines, -1 line 0 comments Download
M net/disk_cache/stats_histogram.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M net/dns/dns_session.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Ilya Sherman
7 years, 6 months ago (2013-06-20 05:50:39 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/17451016/diff/1/base/metrics/bucket_ranges.h File base/metrics/bucket_ranges.h (right): https://codereview.chromium.org/17451016/diff/1/base/metrics/bucket_ranges.h#newcode46 base/metrics/bucket_ranges.h:46: size_t BucketCount() const { return ranges_.size() - 1; } ...
7 years, 6 months ago (2013-06-20 05:53:32 UTC) #2
Ilya Sherman
https://codereview.chromium.org/17451016/diff/1/base/metrics/bucket_ranges.h File base/metrics/bucket_ranges.h (right): https://codereview.chromium.org/17451016/diff/1/base/metrics/bucket_ranges.h#newcode46 base/metrics/bucket_ranges.h:46: size_t BucketCount() const { return ranges_.size() - 1; } ...
7 years, 6 months ago (2013-06-20 05:57:34 UTC) #3
jar (doing other things)
https://codereview.chromium.org/17451016/diff/1/base/metrics/bucket_ranges.h File base/metrics/bucket_ranges.h (right): https://codereview.chromium.org/17451016/diff/1/base/metrics/bucket_ranges.h#newcode46 base/metrics/bucket_ranges.h:46: size_t BucketCount() const { return ranges_.size() - 1; } ...
7 years, 6 months ago (2013-06-20 16:41:18 UTC) #4
Ilya Sherman
https://chromiumcodereview.appspot.com/17451016/diff/1/base/metrics/bucket_ranges.h File base/metrics/bucket_ranges.h (right): https://chromiumcodereview.appspot.com/17451016/diff/1/base/metrics/bucket_ranges.h#newcode46 base/metrics/bucket_ranges.h:46: size_t BucketCount() const { return ranges_.size() - 1; } ...
7 years, 6 months ago (2013-06-21 04:03:05 UTC) #5
jar (doing other things)
LGTM, with an optional nit to consider. https://chromiumcodereview.appspot.com/17451016/diff/13001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://chromiumcodereview.appspot.com/17451016/diff/13001/base/metrics/histogram.cc#newcode253 base/metrics/histogram.cc:253: (bucket_count == ...
7 years, 6 months ago (2013-06-22 01:23:14 UTC) #6
Ilya Sherman
https://chromiumcodereview.appspot.com/17451016/diff/13001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://chromiumcodereview.appspot.com/17451016/diff/13001/base/metrics/histogram.cc#newcode253 base/metrics/histogram.cc:253: (bucket_count == this->bucket_count())); On 2013/06/22 01:23:15, jar wrote: > ...
7 years, 5 months ago (2013-06-27 04:00:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/17451016/38001
7 years, 5 months ago (2013-06-27 04:00:51 UTC) #8
commit-bot: I haz the power
7 years, 5 months ago (2013-06-27 14:38:46 UTC) #9
Message was sent while issue was closed.
Change committed as 208917

Powered by Google App Engine
This is Rietveld 408576698