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

Issue 2023253002: Merge subprocess metrics into global StatisticsRecorder. (Closed)

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

Description

Merge subprocess metrics into global StatisticsRecorder. BUG=546019 Committed: https://crrev.com/05dc092bb18cf559b7959bf39072a96c0faf5f58 Cr-Commit-Position: refs/heads/master@{#397637}

Patch Set 1 #

Patch Set 2 : fixed compile problems #

Total comments: 4

Patch Set 3 : added test #

Total comments: 4

Patch Set 4 : improved comment about when merges occur #

Patch Set 5 : improved comment about when merges occur #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -140 lines) Patch
M base/metrics/histogram.cc View 1 chunk +1 line, -2 lines 0 comments Download
M base/metrics/persistent_histogram_allocator.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M base/metrics/persistent_histogram_allocator.cc View 1 2 chunks +47 lines, -0 lines 0 comments Download
M base/metrics/persistent_histogram_allocator_unittest.cc View 1 2 3 chunks +56 lines, -0 lines 0 comments Download
M base/metrics/sparse_histogram.cc View 1 chunk +0 lines, -1 line 0 comments Download
M base/metrics/statistics_recorder.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/metrics/subprocess_metrics_provider.h View 1 2 3 4 3 chunks +9 lines, -21 lines 0 comments Download
M chrome/browser/metrics/subprocess_metrics_provider.cc View 3 chunks +10 lines, -49 lines 0 comments Download
M chrome/browser/metrics/subprocess_metrics_provider_unittest.cc View 7 chunks +30 lines, -67 lines 0 comments Download
M components/metrics/metrics_provider.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/metrics/metrics_provider.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/metrics/metrics_service.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
bcwhite
4 years, 6 months ago (2016-06-01 16:00:45 UTC) #3
Alexei Svitkine (slow)
Sorry, still reviewing this, but here's what I have so far. (Not much yet..) https://codereview.chromium.org/2023253002/diff/40001/base/metrics/persistent_histogram_allocator.cc ...
4 years, 6 months ago (2016-06-01 22:02:15 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/2023253002/diff/60001/chrome/browser/metrics/subprocess_metrics_provider.cc File chrome/browser/metrics/subprocess_metrics_provider.cc (right): https://codereview.chromium.org/2023253002/diff/60001/chrome/browser/metrics/subprocess_metrics_provider.cc#newcode50 chrome/browser/metrics/subprocess_metrics_provider.cc:50: MergeHistogramDeltasFromAllocator(id, allocator.get()); Is it the case that if metrics ...
4 years, 6 months ago (2016-06-02 17:24:09 UTC) #5
bcwhite
https://codereview.chromium.org/2023253002/diff/40001/base/metrics/persistent_histogram_allocator.cc File base/metrics/persistent_histogram_allocator.cc (right): https://codereview.chromium.org/2023253002/diff/40001/base/metrics/persistent_histogram_allocator.cc#newcode487 base/metrics/persistent_histogram_allocator.cc:487: void PersistentHistogramAllocator::MergeHistogramToStatisticsRecorder( On 2016/06/01 22:02:15, Alexei Svitkine (slow) wrote: ...
4 years, 6 months ago (2016-06-02 19:19:26 UTC) #6
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2023253002/diff/60001/chrome/browser/metrics/subprocess_metrics_provider.cc File chrome/browser/metrics/subprocess_metrics_provider.cc (right): https://codereview.chromium.org/2023253002/diff/60001/chrome/browser/metrics/subprocess_metrics_provider.cc#newcode50 chrome/browser/metrics/subprocess_metrics_provider.cc:50: MergeHistogramDeltasFromAllocator(id, allocator.get()); On 2016/06/02 19:19:26, bcwhite wrote: > ...
4 years, 6 months ago (2016-06-02 19:22:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2023253002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2023253002/100001
4 years, 6 months ago (2016-06-03 03:55:58 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 6 months ago (2016-06-03 04:59:55 UTC) #11
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/05dc092bb18cf559b7959bf39072a96c0faf5f58 Cr-Commit-Position: refs/heads/master@{#397637}
4 years, 6 months ago (2016-06-03 05:01:33 UTC) #13
bcwhite
4 years, 6 months ago (2016-06-03 19:43:22 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/2023253002/diff/60001/chrome/browser/metrics/...
File chrome/browser/metrics/subprocess_metrics_provider.cc (right):

https://codereview.chromium.org/2023253002/diff/60001/chrome/browser/metrics/...
chrome/browser/metrics/subprocess_metrics_provider.cc:50:
MergeHistogramDeltasFromAllocator(id, allocator.get());
On 2016/06/02 19:22:30, Alexei Svitkine (slow) wrote:
> On 2016/06/02 19:19:26, bcwhite wrote:
> > On 2016/06/02 17:24:09, Alexei Svitkine (slow) wrote:
> > > Is it the case that if metrics reporting is disabled, we'll still merge
the
> > > metrics to the statistics recorder - but only here at process exit? (And I
> > guess
> > > also from chrome://histograms)
> > > 
> > > If that's the case, I think it would be useful to have a comment about
this
> to
> > > help the reader understand the system better.
> > 
> > Done.
> 
> I actually meant to specifically call this out in a comment inside this
> function. The comment you added about the class is good too, but add the
> specific info about non-UMA opted case here as well, please.

Done.

Powered by Google App Engine
This is Rietveld 408576698