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

Issue 2907543003: Support persistent system profiles. (Closed)

Created:
3 years, 7 months ago by bcwhite
Modified:
3 years, 6 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Support persistent system profiles. This allows the entire system profile to be saved into one or more persistent memory segments for use after the process exits. The initial version saves only the snapshot known during metrics reporting but later versions will build upon this to keep the profile up-to-date in real time. BUG=695880 Review-Url: https://codereview.chromium.org/2907543003 Cr-Commit-Position: refs/heads/master@{#475534} Committed: https://chromium.googlesource.com/chromium/src/+/4cde5b7b932ff3ae33107778f592fc21021a63c1

Patch Set 1 #

Patch Set 2 : clean up; still not actually called #

Total comments: 36

Patch Set 3 : addressed review comments by asvitkine #

Total comments: 4

Patch Set 4 : addressed review comments by asvitkine #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+573 lines, -2 lines) Patch
M base/metrics/persistent_memory_allocator.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M base/metrics/persistent_memory_allocator.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_field_trials.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M components/metrics/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M components/metrics/metrics_log.cc View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
A components/metrics/persistent_system_profile.h View 1 2 3 1 chunk +126 lines, -0 lines 0 comments Download
A components/metrics/persistent_system_profile.cc View 1 2 3 1 chunk +301 lines, -0 lines 2 comments Download
A components/metrics/persistent_system_profile_unittest.cc View 1 2 3 1 chunk +123 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (16 generated)
bcwhite
Here's a rough first draft. I'll go through and clean it up, add comments, etc. ...
3 years, 7 months ago (2017-05-26 00:38:46 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/2907543003/diff/20001/components/metrics/persistent_system_profile.cc File components/metrics/persistent_system_profile.cc (right): https://codereview.chromium.org/2907543003/diff/20001/components/metrics/persistent_system_profile.cc#newcode37 components/metrics/persistent_system_profile.cc:37: size_t CalcRecordSize(size_t data_amount) { Nit: Calculate https://codereview.chromium.org/2907543003/diff/20001/components/metrics/persistent_system_profile.cc#newcode83 components/metrics/persistent_system_profile.cc:83: size_t ...
3 years, 7 months ago (2017-05-26 18:01:53 UTC) #7
bcwhite
https://codereview.chromium.org/2907543003/diff/20001/components/metrics/persistent_system_profile.cc File components/metrics/persistent_system_profile.cc (right): https://codereview.chromium.org/2907543003/diff/20001/components/metrics/persistent_system_profile.cc#newcode37 components/metrics/persistent_system_profile.cc:37: size_t CalcRecordSize(size_t data_amount) { On 2017/05/26 18:01:52, Alexei Svitkine ...
3 years, 6 months ago (2017-05-29 18:32:27 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/2907543003/diff/20001/components/metrics/persistent_system_profile.h File components/metrics/persistent_system_profile.h (right): https://codereview.chromium.org/2907543003/diff/20001/components/metrics/persistent_system_profile.h#newcode40 components/metrics/persistent_system_profile.h:40: const base::PersistentMemoryAllocator* memory_allocator); On 2017/05/29 18:32:26, bcwhite wrote: > ...
3 years, 6 months ago (2017-05-29 19:48:32 UTC) #13
bcwhite
https://codereview.chromium.org/2907543003/diff/20001/components/metrics/persistent_system_profile.h File components/metrics/persistent_system_profile.h (right): https://codereview.chromium.org/2907543003/diff/20001/components/metrics/persistent_system_profile.h#newcode40 components/metrics/persistent_system_profile.h:40: const base::PersistentMemoryAllocator* memory_allocator); On 2017/05/29 19:48:32, Alexei Svitkine (slow) ...
3 years, 6 months ago (2017-05-29 20:56:35 UTC) #16
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2907543003/diff/60001/components/metrics/persistent_system_profile.cc File components/metrics/persistent_system_profile.cc (right): https://codereview.chromium.org/2907543003/diff/60001/components/metrics/persistent_system_profile.cc#newcode268 components/metrics/persistent_system_profile.cc:268: if (allocators_.empty() || serialized_profile.empty()) If serialized_profile is empty, ...
3 years, 6 months ago (2017-05-29 22:27:24 UTC) #19
bcwhite
https://codereview.chromium.org/2907543003/diff/60001/components/metrics/persistent_system_profile.cc File components/metrics/persistent_system_profile.cc (right): https://codereview.chromium.org/2907543003/diff/60001/components/metrics/persistent_system_profile.cc#newcode268 components/metrics/persistent_system_profile.cc:268: if (allocators_.empty() || serialized_profile.empty()) On 2017/05/29 22:27:24, Alexei Svitkine ...
3 years, 6 months ago (2017-05-30 01:19:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2907543003/60001
3 years, 6 months ago (2017-05-30 15:23:05 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 15:26:54 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/4cde5b7b932ff3ae33107778f592...

Powered by Google App Engine
This is Rietveld 408576698