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

Issue 1737017: Extend Histogram class to support custom range definitions... (Closed)

Created:
10 years, 8 months ago by jar (doing other things)
Modified:
9 years, 7 months ago
Reviewers:
eroman
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org, raman
Visibility:
Public.

Description

Extend Histogram class to support custom range definitions Some users have a small sparsely separated enumerated list of plausible samples which don't fit well into a default (log space) histogarm, or a consistently spaced (LinearHistogram). This implementation does not yet support renderer histograms of this sort, but it at least unblocks the dependent bug that needs support for these sparse histograms in the browser. The bulk of this patch was written by Raman Tenetti, in CL 1706012. BUG=40953 r=eroman Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=45998

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 29

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -15 lines) Patch
M base/histogram.h View 1 2 3 7 chunks +46 lines, -5 lines 0 comments Download
M base/histogram.cc View 1 2 3 4 5 chunks +69 lines, -5 lines 0 comments Download
M base/histogram_unittest.cc View 1 3 chunks +90 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jar (doing other things)
Eric, Since you were most interested in this, I was going to ask you to ...
10 years, 8 months ago (2010-04-28 18:00:51 UTC) #1
eroman
LGTM. Mostly just nits, my main comment is: http://codereview.chromium.org/1737017/diff/5/5003#newcode745 http://codereview.chromium.org/1737017/diff/5/5003 File base/histogram.cc (right): http://codereview.chromium.org/1737017/diff/5/5003#newcode704 base/histogram.cc:704: ...
10 years, 8 months ago (2010-04-28 18:21:35 UTC) #2
jar (doing other things)
Changes per suggestions by eroman. http://codereview.chromium.org/1737017/diff/5/5003 File base/histogram.cc (right): http://codereview.chromium.org/1737017/diff/5/5003#newcode704 base/histogram.cc:704: ranges.push_back(0); // Ensure we ...
10 years, 8 months ago (2010-04-28 19:07:50 UTC) #3
eroman
lgtm
10 years, 8 months ago (2010-04-28 19:41:57 UTC) #4
jar (doing other things)
10 years, 8 months ago (2010-04-28 19:46:53 UTC) #5
One comment response to eroman was somehow lost... so I entered it again below.

http://codereview.chromium.org/1737017/diff/5/5003
File base/histogram.cc (right):

http://codereview.chromium.org/1737017/diff/5/5003#newcode708
base/histogram.cc:708: if (ranges.size() == 1)
On 2010/04/28 18:21:36, eroman wrote:
> We just DCHECKed above that ranges has more than 1 element, why this check?

This was meant to be defensive coding.  I moved around the DCHECK to make this
clearer (and added a comment).

Powered by Google App Engine
This is Rietveld 408576698