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

Issue 1471073007: Reorganize histograms for persistence. (Closed)

Created:
5 years ago by bcwhite
Modified:
5 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@shmem-alloc
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reorganize histograms for persistence. This is split from cl/1425533011. It does all the base work to support holding histograms in persistent memory including moving some files so they'll be accessible and separating metadata for external storage. BUG=546019 TBR=danakj (for trivial change to base/test/histogram_tester.cc) Committed: https://crrev.com/b036e43221eac3ca8a22d7e96258ca056444cedd Cr-Commit-Position: refs/heads/master@{#364408}

Patch Set 1 #

Patch Set 2 : rebase; added missing files #

Patch Set 3 : restored code that shouldn't have been removed #

Patch Set 4 : added GN changes #

Total comments: 11

Patch Set 5 : split out cl/1476633003 #

Patch Set 6 : addressed review comments by Alexei #

Patch Set 7 : extra parameter no longer necessary in some files #

Total comments: 22

Patch Set 8 : addressed some review comments by Alexei #

Total comments: 20

Patch Set 9 : addressed review comments by Alexei #

Total comments: 10

Patch Set 10 : addressed review comments by Alexei #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -112 lines) Patch
M base/metrics/histogram.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M base/metrics/histogram.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -2 lines 0 comments Download
M base/metrics/histogram_base.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M base/metrics/histogram_samples.h View 1 2 3 4 5 6 7 8 9 4 chunks +41 lines, -14 lines 0 comments Download
M base/metrics/histogram_samples.cc View 1 2 3 4 5 6 7 8 9 3 chunks +39 lines, -17 lines 0 comments Download
M base/metrics/histogram_snapshot_manager.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -3 lines 0 comments Download
M base/metrics/histogram_snapshot_manager.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -9 lines 0 comments Download
M base/metrics/histogram_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/metrics/sample_map.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M base/metrics/sample_map.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M base/metrics/sample_map_unittest.cc View 5 chunks +7 lines, -7 lines 0 comments Download
M base/metrics/sample_vector.h View 1 2 3 4 5 6 7 8 5 chunks +20 lines, -2 lines 0 comments Download
M base/metrics/sample_vector.cc View 1 2 3 4 5 6 7 8 9 6 chunks +45 lines, -12 lines 0 comments Download
M base/metrics/sample_vector_unittest.cc View 9 chunks +9 lines, -9 lines 0 comments Download
M base/metrics/sparse_histogram.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M base/metrics/sparse_histogram.cc View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -2 lines 0 comments Download
M base/metrics/statistics_recorder.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -18 lines 0 comments Download
M base/metrics/statistics_recorder.cc View 1 2 3 4 5 6 7 8 8 chunks +20 lines, -11 lines 0 comments Download
M base/test/histogram_tester.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -2 lines 0 comments Download
M components/metrics/histogram_encoder_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/metrics/metrics_log_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 43 (11 generated)
bcwhite
Here's the first part. Needs to be rebased; about_flags has a conflict in the #include ...
5 years ago (2015-11-24 19:27:02 UTC) #2
bcwhite
Dirk, can you help me out with regard to the .gn files? There's obviously something ...
5 years ago (2015-11-24 22:59:34 UTC) #4
Dirk Pranke
On 2015/11/24 22:59:34, bcwhite wrote: > Dirk, can you help me out with regard to ...
5 years ago (2015-11-24 23:56:37 UTC) #5
Dirk Pranke
On 2015/11/24 23:56:37, Dirk Pranke wrote: > On 2015/11/24 22:59:34, bcwhite wrote: > > Dirk, ...
5 years ago (2015-11-25 00:10:18 UTC) #6
bcwhite
> It looks like in moving metrics_hashes.cc to base you've caused the nacl > toolchain ...
5 years ago (2015-11-25 01:23:36 UTC) #7
Dirk Pranke
On 2015/11/25 01:23:36, bcwhite wrote: > > It looks like in moving metrics_hashes.cc to base ...
5 years ago (2015-11-25 01:26:20 UTC) #8
Alexei Svitkine (slow)
Agree with dpranke@ about letting spdy include their own arpa/inet headers if they need it. ...
5 years ago (2015-11-25 16:53:54 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/1471073007/diff/60001/base/metrics/metrics_hashes.cc File base/metrics/metrics_hashes.cc (right): https://codereview.chromium.org/1471073007/diff/60001/base/metrics/metrics_hashes.cc#newcode11 base/metrics/metrics_hashes.cc:11: namespace metrics { This needs to move to base ...
5 years ago (2015-11-25 16:55:30 UTC) #11
bcwhite
> I still feel this patch is a bit too large for my liking. Here's ...
5 years ago (2015-11-25 17:44:19 UTC) #12
Alexei Svitkine (slow)
It will be much faster to land shorter CLs. The time to review a CL ...
5 years ago (2015-11-25 17:49:49 UTC) #13
Alexei Svitkine (slow)
https://codereview.chromium.org/1471073007/diff/60001/base/metrics/histogram_base.h File base/metrics/histogram_base.h (right): https://codereview.chromium.org/1471073007/diff/60001/base/metrics/histogram_base.h#newcode108 base/metrics/histogram_base.h:108: virtual uint64_t id() const = 0; I think it's ...
5 years ago (2015-11-25 18:05:27 UTC) #14
bcwhite
split out cl/1476633003
5 years ago (2015-11-25 21:36:01 UTC) #15
bcwhite
https://codereview.chromium.org/1471073007/diff/60001/base/metrics/histogram_base.h File base/metrics/histogram_base.h (right): https://codereview.chromium.org/1471073007/diff/60001/base/metrics/histogram_base.h#newcode108 base/metrics/histogram_base.h:108: virtual uint64_t id() const = 0; On 2015/11/25 18:05:27, ...
5 years ago (2015-11-25 21:54:17 UTC) #17
Alexei Svitkine (slow)
https://codereview.chromium.org/1471073007/diff/140001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/1471073007/diff/140001/base/metrics/histogram.cc#newcode305 base/metrics/histogram.cc:305: DCHECK(samples.id() == 0 || samples.id() == samples_->id()); This seems ...
5 years ago (2015-12-01 16:32:15 UTC) #19
bcwhite
https://codereview.chromium.org/1471073007/diff/140001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/1471073007/diff/140001/base/metrics/histogram.cc#newcode305 base/metrics/histogram.cc:305: DCHECK(samples.id() == 0 || samples.id() == samples_->id()); On 2015/12/01 ...
5 years ago (2015-12-01 18:12:16 UTC) #20
Alexei Svitkine (slow)
https://codereview.chromium.org/1471073007/diff/140001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/1471073007/diff/140001/base/metrics/histogram.cc#newcode305 base/metrics/histogram.cc:305: DCHECK(samples.id() == 0 || samples.id() == samples_->id()); On 2015/12/01 ...
5 years ago (2015-12-01 18:27:14 UTC) #21
bcwhite
https://codereview.chromium.org/1471073007/diff/140001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/1471073007/diff/140001/base/metrics/histogram.cc#newcode305 base/metrics/histogram.cc:305: DCHECK(samples.id() == 0 || samples.id() == samples_->id()); On 2015/12/01 ...
5 years ago (2015-12-01 19:33:44 UTC) #22
Alexei Svitkine (slow)
https://codereview.chromium.org/1471073007/diff/160001/base/metrics/histogram_samples.cc File base/metrics/histogram_samples.cc (right): https://codereview.chromium.org/1471073007/diff/160001/base/metrics/histogram_samples.cc#newcode137 base/metrics/histogram_samples.cc:137: #endif As we discussed offline some time back, let's ...
5 years ago (2015-12-04 18:21:00 UTC) #23
bcwhite
https://codereview.chromium.org/1471073007/diff/160001/base/metrics/histogram_samples.cc File base/metrics/histogram_samples.cc (right): https://codereview.chromium.org/1471073007/diff/160001/base/metrics/histogram_samples.cc#newcode137 base/metrics/histogram_samples.cc:137: #endif On 2015/12/04 18:21:00, Alexei Svitkine (slow) wrote: > ...
5 years ago (2015-12-04 19:34:47 UTC) #24
bcwhite
https://codereview.chromium.org/1471073007/diff/160001/base/metrics/histogram_samples.h File base/metrics/histogram_samples.h (right): https://codereview.chromium.org/1471073007/diff/160001/base/metrics/histogram_samples.h#newcode93 base/metrics/histogram_samples.h:93: Metadata* meta_; On 2015/12/04 19:34:46, bcwhite wrote: > On ...
5 years ago (2015-12-05 18:12:37 UTC) #25
Alexei Svitkine (slow)
https://codereview.chromium.org/1471073007/diff/160001/base/metrics/histogram_samples.h File base/metrics/histogram_samples.h (right): https://codereview.chromium.org/1471073007/diff/160001/base/metrics/histogram_samples.h#newcode93 base/metrics/histogram_samples.h:93: Metadata* meta_; On 2015/12/05 18:12:37, bcwhite wrote: > On ...
5 years ago (2015-12-09 23:03:40 UTC) #26
bcwhite
https://codereview.chromium.org/1471073007/diff/180001/base/metrics/histogram_samples.cc File base/metrics/histogram_samples.cc (right): https://codereview.chromium.org/1471073007/diff/180001/base/metrics/histogram_samples.cc#newcode75 base/metrics/histogram_samples.cc:75: CHECK(meta_->id == 0 || meta_->id == id); On 2015/12/09 ...
5 years ago (2015-12-10 14:51:33 UTC) #27
Alexei Svitkine (slow)
lgtm
5 years ago (2015-12-10 16:02:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1471073007/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1471073007/200001
5 years ago (2015-12-10 17:05:15 UTC) #32
commit-bot: I haz the power
Committed patchset #10 (id:200001)
5 years ago (2015-12-10 18:37:28 UTC) #34
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/b036e43221eac3ca8a22d7e96258ca056444cedd Cr-Commit-Position: refs/heads/master@{#364408}
5 years ago (2015-12-10 18:39:07 UTC) #36
Nico
Could this have caused these UBSan reports: https://build.chromium.org/p/chromium.fyi/builders/ClangToTLinuxUBSanVptr%20tester/builds/64/steps/ui_base_unittests/logs/DataPackTest.LoadFileWithTruncatedHeader ? All the tests on https://build.chromium.org/p/chromium.fyi/builders/ClangToTLinuxUBSanVptr%20tester/builds/64 were ...
5 years ago (2015-12-11 22:38:26 UTC) #38
Alexei Svitkine (slow)
Seems possible, those constructors were changed by the CL. I am pretty confused by the ...
5 years ago (2015-12-11 22:41:25 UTC) #39
Alexei Svitkine (slow)
In checkDynamicType(), there's a comment "A crash anywhere within this function probably means the vptr ...
5 years ago (2015-12-11 22:45:40 UTC) #40
hans
Filed crbug.com/569187 for this. On 2015/12/11 22:45:40, Alexei Svitkine (slow) wrote: > In checkDynamicType(), there's ...
5 years ago (2015-12-11 23:01:00 UTC) #41
bcwhite
> In checkDynamicType(), there's a comment "A crash anywhere within this > function probably means ...
5 years ago (2015-12-14 14:09:28 UTC) #42
bcwhite
5 years ago (2015-12-16 13:17:02 UTC) #43
Message was sent while issue was closed.
Fixed by https://codereview.chromium.org/1524853002/

Powered by Google App Engine
This is Rietveld 408576698