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

Issue 2918533003: Send metrics with embedded system profiles after system startup. (Closed)

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

Description

Persistent metrics files that have an embedded profile don't need to be sent during startup. Instead, send them as independent logs once the browser is already running. BUG=695880 Review-Url: https://codereview.chromium.org/2918533003 Cr-Commit-Position: refs/heads/master@{#478359} Committed: https://chromium.googlesource.com/chromium/src/+/8e72aa59dfdea6e261b06d8061e488f76801898f

Patch Set 1 : Recover system profile from persistent storage during stability metrics upload. #

Patch Set 2 : load profile from only the first found source #

Total comments: 3

Patch Set 3 : refactored to upload as independent logs #

Patch Set 4 : fixed tests on mac #

Total comments: 20

Patch Set 5 : addressed review comments; added histogram #

Total comments: 6

Patch Set 6 : addressed final review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -47 lines) Patch
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M components/metrics/file_metrics_provider.h View 1 2 4 chunks +23 lines, -1 line 0 comments Download
M components/metrics/file_metrics_provider.cc View 1 2 3 4 5 11 chunks +114 lines, -25 lines 0 comments Download
M components/metrics/file_metrics_provider_unittest.cc View 1 2 3 7 chunks +164 lines, -2 lines 0 comments Download
M components/metrics/metrics_log.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M components/metrics/metrics_log.cc View 1 2 3 4 3 chunks +34 lines, -0 lines 0 comments Download
M components/metrics/metrics_log_store.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/metrics/metrics_provider.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M components/metrics/metrics_provider.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M components/metrics/metrics_service.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M components/metrics/metrics_service.cc View 1 2 3 4 2 chunks +37 lines, -0 lines 0 comments Download
M components/metrics/metrics_service_unittest.cc View 1 2 3 1 chunk +10 lines, -9 lines 0 comments Download
M components/metrics/persistent_system_profile.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M components/metrics/persistent_system_profile.cc View 1 2 2 chunks +31 lines, -0 lines 0 comments Download
M components/metrics/persistent_system_profile_unittest.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 67 (54 generated)
bcwhite
3 years, 6 months ago (2017-05-31 14:24:59 UTC) #4
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/2918533003/1
3 years, 6 months ago (2017-05-31 17:09:17 UTC) #8
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 6 months ago (2017-05-31 17:09:21 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/2918533003/diff/20001/components/metrics/metrics_service.cc File components/metrics/metrics_service.cc (right): https://codereview.chromium.org/2918533003/diff/20001/components/metrics/metrics_service.cc#newcode788 components/metrics/metrics_service.cc:788: provider.get(), &system_profile_app_version)) { Instead of replacing the profile of ...
3 years, 6 months ago (2017-05-31 20:31:24 UTC) #13
bcwhite
https://codereview.chromium.org/2918533003/diff/20001/components/metrics/metrics_service.cc File components/metrics/metrics_service.cc (right): https://codereview.chromium.org/2918533003/diff/20001/components/metrics/metrics_service.cc#newcode788 components/metrics/metrics_service.cc:788: provider.get(), &system_profile_app_version)) { Currently there is only ever one ...
3 years, 6 months ago (2017-05-31 20:48:30 UTC) #14
Alexei Svitkine (slow)
https://codereview.chromium.org/2918533003/diff/20001/components/metrics/metrics_service.cc File components/metrics/metrics_service.cc (right): https://codereview.chromium.org/2918533003/diff/20001/components/metrics/metrics_service.cc#newcode788 components/metrics/metrics_service.cc:788: provider.get(), &system_profile_app_version)) { On 2017/05/31 20:48:29, bcwhite wrote: > ...
3 years, 6 months ago (2017-06-01 15:00:29 UTC) #17
bcwhite
On 2017/06/01 15:00:29, Alexei Svitkine (very slow) wrote: > https://codereview.chromium.org/2918533003/diff/20001/components/metrics/metrics_service.cc > File components/metrics/metrics_service.cc (right): > ...
3 years, 6 months ago (2017-06-08 18:28:15 UTC) #45
Alexei Svitkine (slow)
https://codereview.chromium.org/2918533003/diff/100001/components/metrics/metrics_log.cc File components/metrics/metrics_log.cc (right): https://codereview.chromium.org/2918533003/diff/100001/components/metrics/metrics_log.cc#newcode57 components/metrics/metrics_log.cc:57: class IndependentFlattener : public base::HistogramFlattener { Nit: Short comment ...
3 years, 6 months ago (2017-06-08 23:59:31 UTC) #46
bcwhite
https://codereview.chromium.org/2918533003/diff/100001/components/metrics/metrics_log.cc File components/metrics/metrics_log.cc (right): https://codereview.chromium.org/2918533003/diff/100001/components/metrics/metrics_log.cc#newcode57 components/metrics/metrics_log.cc:57: class IndependentFlattener : public base::HistogramFlattener { On 2017/06/08 23:59:30, ...
3 years, 6 months ago (2017-06-09 15:09:28 UTC) #53
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2918533003/diff/140001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/2918533003/diff/140001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode195 chrome/browser/metrics/chrome_metrics_service_client.cc:195: ASSOCIATE_INTERNAL_PROFILE_OR_PREVIOUS_RUN, Nit: Maybe just pass the enum to ...
3 years, 6 months ago (2017-06-09 16:08:33 UTC) #54
bcwhite
https://codereview.chromium.org/2918533003/diff/140001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/2918533003/diff/140001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode195 chrome/browser/metrics/chrome_metrics_service_client.cc:195: ASSOCIATE_INTERNAL_PROFILE_OR_PREVIOUS_RUN, On 2017/06/09 16:08:33, Alexei Svitkine (very slow) wrote: ...
3 years, 6 months ago (2017-06-09 16:59:10 UTC) #59
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/2918533003/160001
3 years, 6 months ago (2017-06-09 18:55:04 UTC) #64
commit-bot: I haz the power
3 years, 6 months ago (2017-06-09 18:59:35 UTC) #67
Message was sent while issue was closed.
Committed patchset #6 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/8e72aa59dfdea6e261b06d8061e4...

Powered by Google App Engine
This is Rietveld 408576698