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

Issue 1177263004: Add HistogramTester::GetAllSamples. (Closed)

Created:
5 years, 6 months ago by twifkak
Modified:
5 years, 5 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add HistogramTester::GetAllSamples. Returns the same value as GetHistogramSamplesSinceCreation, but as a vector<pair<Sample, Count>> for easier testing. BUG= Committed: https://crrev.com/5c8510d1c1078e82357005cf56f0af8acde0c168 Cr-Commit-Position: refs/heads/master@{#336842}

Patch Set 1 : Add GetAllSamples() and test. #

Total comments: 4

Patch Set 2 : Add example usage, per ncarter. #

Patch Set 3 : Change std::pair to Bucket, per isherman. #

Total comments: 11

Patch Set 4 : Tweaks per isherman. #

Total comments: 2

Patch Set 5 : Remove unnecessary underscores from Bucket constructor param names. #

Patch Set 6 : Remove member variable const qualifications, for std::vector. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -0 lines) Patch
M base/test/histogram_tester.h View 1 2 3 4 5 4 chunks +34 lines, -0 lines 0 comments Download
M base/test/histogram_tester.cc View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M base/test/histogram_tester_unittest.cc View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (11 generated)
twifkak
An example use case would be https://codereview.chromium.org/1179953005/.
5 years, 6 months ago (2015-06-18 00:03:18 UTC) #2
twifkak
On 2015/06/18 00:03:18, twifkak wrote: > An example use case would be https://codereview.chromium.org/1179953005/. That's https://codereview.chromium.org/1179953005/patch/80001/90003 ...
5 years, 6 months ago (2015-06-18 00:03:57 UTC) #3
twifkak
+mlerman, who authored the class.
5 years, 6 months ago (2015-06-22 19:30:52 UTC) #5
Mike Lerman
It was fairly intentional that the raw state of the histogram is not exposed directly. ...
5 years, 6 months ago (2015-06-22 20:40:04 UTC) #6
twifkak
On 2015/06/22 20:40:04, Mike Lerman wrote: > It was fairly intentional that the raw state ...
5 years, 6 months ago (2015-06-22 20:48:34 UTC) #7
Mike Lerman
On 2015/06/22 20:48:34, twifkak wrote: > On 2015/06/22 20:40:04, Mike Lerman wrote: > > It ...
5 years, 6 months ago (2015-06-23 12:37:01 UTC) #8
twifkak
On 2015/06/23 12:37:01, Mike Lerman wrote: > On 2015/06/22 20:48:34, twifkak wrote: > > On ...
5 years, 6 months ago (2015-06-23 16:25:45 UTC) #10
Mike Lerman
On 2015/06/23 16:25:45, twifkak wrote: > On 2015/06/23 12:37:01, Mike Lerman wrote: > > On ...
5 years, 6 months ago (2015-06-23 17:45:02 UTC) #11
twifkak
On 2015/06/23 17:45:02, Mike Lerman wrote: > On 2015/06/23 16:25:45, twifkak wrote: > > On ...
5 years, 6 months ago (2015-06-23 19:52:05 UTC) #13
Ilya Sherman
I'm okay with this CL too. I do think that if we land this CL, ...
5 years, 6 months ago (2015-06-23 21:04:54 UTC) #14
ncarter (slow)
https://codereview.chromium.org/1177263004/diff/1/base/test/histogram_tester.h File base/test/histogram_tester.h (right): https://codereview.chromium.org/1177263004/diff/1/base/test/histogram_tester.h#newcode54 base/test/histogram_tester.h:54: // bucket and the Count is the count recorded ...
5 years, 6 months ago (2015-06-24 17:28:44 UTC) #17
ncarter (slow)
On 2015/06/24 17:28:44, ncarter wrote: > https://codereview.chromium.org/1177263004/diff/1/base/test/histogram_tester.h > File base/test/histogram_tester.h (right): > > https://codereview.chromium.org/1177263004/diff/1/base/test/histogram_tester.h#newcode54 > ...
5 years, 6 months ago (2015-06-24 17:38:14 UTC) #18
Ilya Sherman
On 2015/06/24 17:28:44, ncarter wrote: > https://codereview.chromium.org/1177263004/diff/1/base/test/histogram_tester.h > File base/test/histogram_tester.h (right): > > https://codereview.chromium.org/1177263004/diff/1/base/test/histogram_tester.h#newcode54 > ...
5 years, 6 months ago (2015-06-24 20:28:08 UTC) #19
twifkak
On 2015/06/24 17:38:14, ncarter wrote: > For the curious -- I compiled a comparison of ...
5 years, 6 months ago (2015-06-24 21:10:09 UTC) #20
Ilya Sherman
On 2015/06/24 21:10:09, twifkak wrote: > On 2015/06/24 17:38:14, ncarter wrote: > > For the ...
5 years, 6 months ago (2015-06-24 23:22:29 UTC) #21
ncarter (slow)
On 2015/06/24 23:22:29, Ilya Sherman wrote: > On 2015/06/24 21:10:09, twifkak wrote: > > On ...
5 years, 6 months ago (2015-06-24 23:31:00 UTC) #22
twifkak
On 2015/06/24 23:22:29, Ilya Sherman wrote: > On 2015/06/24 21:10:09, twifkak wrote: > > On ...
5 years, 6 months ago (2015-06-25 20:08:20 UTC) #23
Ilya Sherman
On 2015/06/25 20:08:20, twifkak wrote: > On 2015/06/24 23:22:29, Ilya Sherman wrote: > > On ...
5 years, 6 months ago (2015-06-25 20:18:42 UTC) #24
twifkak
https://codereview.chromium.org/1177263004/diff/1/base/test/histogram_tester.h File base/test/histogram_tester.h (right): https://codereview.chromium.org/1177263004/diff/1/base/test/histogram_tester.h#newcode54 base/test/histogram_tester.h:54: // bucket and the Count is the count recorded ...
5 years, 6 months ago (2015-06-25 20:21:38 UTC) #25
ncarter (slow)
On 2015/06/25 20:21:38, twifkak wrote: > https://codereview.chromium.org/1177263004/diff/1/base/test/histogram_tester.h > File base/test/histogram_tester.h (right): > > https://codereview.chromium.org/1177263004/diff/1/base/test/histogram_tester.h#newcode54 > ...
5 years, 6 months ago (2015-06-25 21:20:25 UTC) #26
twifkak
On 2015/06/25 20:18:42, Ilya Sherman wrote: > On 2015/06/25 20:08:20, twifkak wrote: > > On ...
5 years, 6 months ago (2015-06-25 22:11:10 UTC) #27
Ilya Sherman
On 2015/06/25 22:11:10, twifkak wrote: > On 2015/06/25 20:18:42, Ilya Sherman wrote: > > On ...
5 years, 6 months ago (2015-06-25 22:27:13 UTC) #28
Ilya Sherman
On 2015/06/25 22:27:13, Ilya Sherman wrote: > On 2015/06/25 22:11:10, twifkak wrote: > > On ...
5 years, 6 months ago (2015-06-25 22:29:23 UTC) #29
twifkak
On 2015/06/25 22:29:23, Ilya Sherman wrote: > On 2015/06/25 22:27:13, Ilya Sherman wrote: > > ...
5 years, 6 months ago (2015-06-25 23:10:20 UTC) #30
Ilya Sherman
On 2015/06/25 23:10:20, twifkak wrote: > On 2015/06/25 22:29:23, Ilya Sherman wrote: > > On ...
5 years, 6 months ago (2015-06-26 01:53:14 UTC) #31
twifkak
On 2015/06/26 01:53:14, Ilya Sherman wrote: > On 2015/06/25 23:10:20, twifkak wrote: > > On ...
5 years, 6 months ago (2015-06-26 08:25:04 UTC) #32
Ilya Sherman
Sweet! LGTM, with some ideas/suggestions: https://codereview.chromium.org/1177263004/diff/40001/base/test/histogram_tester.cc File base/test/histogram_tester.cc (right): https://codereview.chromium.org/1177263004/diff/40001/base/test/histogram_tester.cc#newcode142 base/test/histogram_tester.cc:142: << "in bucket " ...
5 years, 6 months ago (2015-06-27 07:25:20 UTC) #33
ncarter (slow)
lgtm
5 years, 5 months ago (2015-06-29 17:00:03 UTC) #34
twifkak
https://codereview.chromium.org/1177263004/diff/40001/base/test/histogram_tester.cc File base/test/histogram_tester.cc (right): https://codereview.chromium.org/1177263004/diff/40001/base/test/histogram_tester.cc#newcode142 base/test/histogram_tester.cc:142: << "in bucket " << bucket.min_; On 2015/06/27 07:25:19, ...
5 years, 5 months ago (2015-06-29 21:52:29 UTC) #35
Ilya Sherman
LGTM, thanks. https://codereview.chromium.org/1177263004/diff/40001/base/test/histogram_tester.cc File base/test/histogram_tester.cc (right): https://codereview.chromium.org/1177263004/diff/40001/base/test/histogram_tester.cc#newcode142 base/test/histogram_tester.cc:142: << "in bucket " << bucket.min_; On ...
5 years, 5 months ago (2015-06-29 22:05:34 UTC) #36
twifkak
https://codereview.chromium.org/1177263004/diff/60001/base/test/histogram_tester.h File base/test/histogram_tester.h (right): https://codereview.chromium.org/1177263004/diff/60001/base/test/histogram_tester.h#newcode102 base/test/histogram_tester.h:102: Bucket(base::HistogramBase::Sample min_, base::HistogramBase::Count count_) On 2015/06/29 22:05:34, Ilya Sherman ...
5 years, 5 months ago (2015-06-29 22:38:06 UTC) #37
twifkak
mlerman and phajdan.jr: Please review this CL.
5 years, 5 months ago (2015-06-29 22:39:57 UTC) #38
Paweł Hajdan Jr.
LGTM
5 years, 5 months ago (2015-06-30 08:15:30 UTC) #39
Mike Lerman
Content with Ilya's review. Lgtm.
5 years, 5 months ago (2015-06-30 10:16:08 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1177263004/80001
5 years, 5 months ago (2015-06-30 17:38:19 UTC) #43
commit-bot: I haz the power
Exceeded global retry quota
5 years, 5 months ago (2015-06-30 17:54:35 UTC) #45
twifkak
On 2015/06/30 17:54:35, commit-bot: I haz the power wrote: > Exceeded global retry quota Uploaded ...
5 years, 5 months ago (2015-06-30 18:04:07 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1177263004/100001
5 years, 5 months ago (2015-06-30 18:05:28 UTC) #49
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 5 months ago (2015-06-30 19:13:33 UTC) #50
commit-bot: I haz the power
5 years, 5 months ago (2015-06-30 19:14:39 UTC) #51
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5c8510d1c1078e82357005cf56f0af8acde0c168
Cr-Commit-Position: refs/heads/master@{#336842}

Powered by Google App Engine
This is Rietveld 408576698