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

Issue 1734033003: Add support for persistent sparse histograms. (Closed)

Created:
4 years, 10 months ago by bcwhite
Modified:
4 years, 9 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, vmpstr+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 support for persistent sparse histograms. Sparse histograms don't have a single "values vector" that can be created during construction. Rather, they create a list of value "records" that can be easily added to as needed. BUG=546019 TBR=mark mark: gn and gyp (new files) Committed: https://crrev.com/3dd85c4f5f230f7c1fa1055cb035c72196a46237 Cr-Commit-Position: refs/heads/master@{#381699}

Patch Set 1 #

Patch Set 2 : fixed test initialization so test gets consistent environment #

Patch Set 3 : added timing test #

Patch Set 4 : some 'git cl format' changes and other cosmetic improvements #

Total comments: 46

Patch Set 5 : addressed review comments by Greg #

Total comments: 13

Patch Set 6 : addressed review comments by Alexei #

Patch Set 7 : move PersistentSampleMap to its own file #

Patch Set 8 : merge common code for sparse/regular histogram creation #

Total comments: 29

Patch Set 9 : addressed more review comments by Alexei #

Total comments: 6

Patch Set 10 : addressed review comments by Alexei #

Total comments: 14

Patch Set 11 : addressed final review comments by Alexei #

Patch Set 12 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+964 lines, -142 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 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 1 chunk +2 lines, -0 lines 0 comments Download
M base/metrics/histogram.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +5 lines, -6 lines 0 comments Download
M base/metrics/histogram_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -10 lines 0 comments Download
M base/metrics/persistent_histogram_allocator.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +64 lines, -36 lines 0 comments Download
A base/metrics/persistent_sample_map.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +78 lines, -0 lines 0 comments Download
A base/metrics/persistent_sample_map.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +267 lines, -0 lines 0 comments Download
A base/metrics/persistent_sample_map_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +243 lines, -0 lines 0 comments Download
M base/metrics/sample_map.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -26 lines 0 comments Download
M base/metrics/sample_map.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +66 lines, -37 lines 0 comments Download
M base/metrics/sparse_histogram.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +15 lines, -2 lines 0 comments Download
M base/metrics/sparse_histogram.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +87 lines, -15 lines 0 comments Download
M base/metrics/sparse_histogram_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +123 lines, -10 lines 0 comments Download

Messages

Total messages: 29 (10 generated)
bcwhite
4 years, 10 months ago (2016-02-25 21:30:05 UTC) #3
grt (UTC plus 2)
overall looks good. i don't know the guts of histograms or the allocator to provide ...
4 years, 9 months ago (2016-03-02 20:00:43 UTC) #4
bcwhite
https://codereview.chromium.org/1734033003/diff/80001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/1734033003/diff/80001/base/metrics/histogram.cc#newcode175 base/metrics/histogram.cc:175: // 2016-02-25, the availability of such is controlled by ...
4 years, 9 months ago (2016-03-02 22:32:44 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/1734033003/diff/100001/base/metrics/histogram_persistence.cc File base/metrics/histogram_persistence.cc (right): https://codereview.chromium.org/1734033003/diff/100001/base/metrics/histogram_persistence.cc#newcode448 base/metrics/histogram_persistence.cc:448: } Everything in this block seems to be a ...
4 years, 9 months ago (2016-03-03 17:43:38 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/1734033003/diff/100001/base/metrics/histogram_persistence.cc File base/metrics/histogram_persistence.cc (right): https://codereview.chromium.org/1734033003/diff/100001/base/metrics/histogram_persistence.cc#newcode448 base/metrics/histogram_persistence.cc:448: } On 2016/03/03 17:43:38, Alexei Svitkine (slow) wrote: > ...
4 years, 9 months ago (2016-03-03 17:45:19 UTC) #8
bcwhite
https://codereview.chromium.org/1734033003/diff/100001/base/metrics/histogram_persistence.cc File base/metrics/histogram_persistence.cc (right): https://codereview.chromium.org/1734033003/diff/100001/base/metrics/histogram_persistence.cc#newcode448 base/metrics/histogram_persistence.cc:448: } On 2016/03/03 17:43:38, Alexei Svitkine (slow) wrote: > ...
4 years, 9 months ago (2016-03-07 15:30:39 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/1734033003/diff/100001/base/metrics/histogram_persistence.cc File base/metrics/histogram_persistence.cc (right): https://codereview.chromium.org/1734033003/diff/100001/base/metrics/histogram_persistence.cc#newcode448 base/metrics/histogram_persistence.cc:448: } On 2016/03/07 15:30:39, bcwhite wrote: > On 2016/03/03 ...
4 years, 9 months ago (2016-03-07 21:32:31 UTC) #11
bcwhite
https://codereview.chromium.org/1734033003/diff/100001/base/metrics/histogram_persistence.cc File base/metrics/histogram_persistence.cc (right): https://codereview.chromium.org/1734033003/diff/100001/base/metrics/histogram_persistence.cc#newcode448 base/metrics/histogram_persistence.cc:448: } On 2016/03/07 21:32:31, Alexei Svitkine (slow) wrote: > ...
4 years, 9 months ago (2016-03-07 22:22:07 UTC) #12
Alexei Svitkine (slow)
https://codereview.chromium.org/1734033003/diff/180001/base/metrics/persistent_sample_map.cc File base/metrics/persistent_sample_map.cc (right): https://codereview.chromium.org/1734033003/diff/180001/base/metrics/persistent_sample_map.cc#newcode128 base/metrics/persistent_sample_map.cc:128: count_pointer = new Count(0); Who owns this? Doesn't seem ...
4 years, 9 months ago (2016-03-08 19:46:25 UTC) #13
bcwhite
https://codereview.chromium.org/1734033003/diff/180001/base/metrics/persistent_sample_map.cc File base/metrics/persistent_sample_map.cc (right): https://codereview.chromium.org/1734033003/diff/180001/base/metrics/persistent_sample_map.cc#newcode128 base/metrics/persistent_sample_map.cc:128: count_pointer = new Count(0); On 2016/03/08 19:46:25, Alexei Svitkine ...
4 years, 9 months ago (2016-03-09 01:16:53 UTC) #14
Alexei Svitkine (slow)
https://codereview.chromium.org/1734033003/diff/180001/base/metrics/persistent_sample_map.cc File base/metrics/persistent_sample_map.cc (right): https://codereview.chromium.org/1734033003/diff/180001/base/metrics/persistent_sample_map.cc#newcode230 base/metrics/persistent_sample_map.cc:230: while (!Done() && *iter_->second == 0) On 2016/03/09 01:16:52, ...
4 years, 9 months ago (2016-03-09 20:35:19 UTC) #15
bcwhite
https://codereview.chromium.org/1734033003/diff/180001/base/metrics/persistent_sample_map.cc File base/metrics/persistent_sample_map.cc (right): https://codereview.chromium.org/1734033003/diff/180001/base/metrics/persistent_sample_map.cc#newcode230 base/metrics/persistent_sample_map.cc:230: while (!Done() && *iter_->second == 0) On 2016/03/09 20:35:19, ...
4 years, 9 months ago (2016-03-09 22:57:33 UTC) #16
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1734033003/diff/220001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/1734033003/diff/220001/base/metrics/histogram.cc#newcode130 base/metrics/histogram.cc:130: // overridden, be sure to call the "super" ...
4 years, 9 months ago (2016-03-14 18:49:00 UTC) #17
bcwhite
https://codereview.chromium.org/1734033003/diff/220001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/1734033003/diff/220001/base/metrics/histogram.cc#newcode130 base/metrics/histogram.cc:130: // overridden, be sure to call the "super" version. ...
4 years, 9 months ago (2016-03-15 00:00:21 UTC) #18
Alexei Svitkine (slow)
https://codereview.chromium.org/1734033003/diff/220001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/1734033003/diff/220001/base/metrics/histogram.cc#newcode200 base/metrics/histogram.cc:200: tentative_histogram->SetFlags(flags_); On 2016/03/15 00:00:21, bcwhite wrote: > On 2016/03/14 ...
4 years, 9 months ago (2016-03-16 15:25:43 UTC) #19
bcwhite
https://codereview.chromium.org/1734033003/diff/220001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/1734033003/diff/220001/base/metrics/histogram.cc#newcode200 base/metrics/histogram.cc:200: tentative_histogram->SetFlags(flags_); On 2016/03/16 15:25:43, Alexei Svitkine (very slow) wrote: ...
4 years, 9 months ago (2016-03-16 15:42:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1734033003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1734033003/280001
4 years, 9 months ago (2016-03-17 12:48:08 UTC) #25
commit-bot: I haz the power
Committed patchset #12 (id:280001)
4 years, 9 months ago (2016-03-17 13:22:05 UTC) #27
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 13:23:15 UTC) #29
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/3dd85c4f5f230f7c1fa1055cb035c72196a46237
Cr-Commit-Position: refs/heads/master@{#381699}

Powered by Google App Engine
This is Rietveld 408576698