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

Issue 2862333002: Revert of Add support for single sample metrics. (Closed)

Created:
3 years, 7 months ago by Alexei Svitkine (slow)
Modified:
3 years, 7 months ago
CC:
apacible+watch_chromium.org, asvitkine+watch_chromium.org, bcwhite, chromium-reviews, erickung+watch_chromium.org, feature-media-reviews_chromium.org, miu+watch_chromium.org, vmpstr+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Add support for single sample metrics. (patchset #15 id:360001 of https://codereview.chromium.org/2687583002/ ) Reason for revert: Flaky SingleSampleMetricsFactoryImplTest.MultithreadedMetrics test and cronet size regression. Original issue's description: > Add support for single sample metrics. > > Single sample metrics offer a mechanism for clients to modify > a histogram sample repeatedly while having it only reported once; > either upon destruction of a helper class or at process termination. > > This is helpful since the fast shutdown path simply kills renderer > processes without going through any destructors. In this case we > lose histogram values that might otherwise be reported at that > time. > > In media/ code we've created a cumbersome proxy mechanism which > sends histogram values like this to the browser process and records > them there (see WatchTimeReporter and MediaInternals interactions). > > Single sample histograms are implemented through a new mojo service > hosted by the browser process that receives samples and logs the > last received sample upon mojo channel closure. > > base:: shims are provided so that these metrics can be created by > anyone in the renderer process. For non-renderer processes a default > implementation is provided without the mojo channel behavior. > > Usage looks like the following: > std::unique_ptr<base::SingleSampleMetric> metric( > base::SingleSampleMetricsFactory::Get()->CreateCustomCountsMetric( > "Media.VideoRenderer.CadenceChanges", 1, 10, 10)); > metric->SetSample(1); > metric->SetSample(2); > metric->SetSample(3); > metric.reset(); > > Only the last sample (3) would end up being reported to the histogram. > > BUG=689751 > TEST=new tests > > Review-Url: https://codereview.chromium.org/2687583002 > Cr-Commit-Position: refs/heads/master@{#469524} > Committed: https://chromium.googlesource.com/chromium/src/+/4a9839a21d7fd95641ba584396bf328fbc1a96b0 TBR=bcwhite@chromium.org,blundell@chromium.org,dcheng@chromium.org,nick@chromium.org,oysteine@chromium.org,rockot@chromium.org,dalecurtis@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=689751

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -871 lines) Patch
M base/BUILD.gn View 2 chunks +0 lines, -3 lines 0 comments Download
D base/metrics/single_sample_metrics.h View 1 chunk +0 lines, -104 lines 0 comments Download
D base/metrics/single_sample_metrics.cc View 1 chunk +0 lines, -77 lines 0 comments Download
D base/metrics/single_sample_metrics_unittest.cc View 1 chunk +0 lines, -121 lines 0 comments Download
M components/metrics/BUILD.gn View 3 chunks +1 line, -21 lines 0 comments Download
M components/metrics/public/interfaces/BUILD.gn View 1 chunk +0 lines, -6 lines 0 comments Download
D components/metrics/public/interfaces/single_sample_metrics.mojom View 1 chunk +0 lines, -24 lines 0 comments Download
D components/metrics/single_sample_metrics.h View 1 chunk +0 lines, -43 lines 0 comments Download
D components/metrics/single_sample_metrics.cc View 1 chunk +0 lines, -86 lines 0 comments Download
D components/metrics/single_sample_metrics_factory_impl.h View 1 chunk +0 lines, -71 lines 0 comments Download
D components/metrics/single_sample_metrics_factory_impl.cc View 1 chunk +0 lines, -90 lines 0 comments Download
D components/metrics/single_sample_metrics_factory_impl_unittest.cc View 1 chunk +0 lines, -183 lines 0 comments Download
M components/test/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M components/test/DEPS View 1 chunk +0 lines, -6 lines 0 comments Download
M components/test/components_test_suite.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M content/browser/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 2 chunks +0 lines, -4 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 3 chunks +0 lines, -23 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Alexei Svitkine (slow)
Created Revert of Add support for single sample metrics.
3 years, 7 months ago (2017-05-05 19:24:43 UTC) #2
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/2862333002/1
3 years, 7 months ago (2017-05-05 19:25:19 UTC) #3
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_process_host_impl.cc: While running git apply --index -3 -p1; error: patch ...
3 years, 7 months ago (2017-05-05 19:26:17 UTC) #5
ncarter (slow)
On 2017/05/05 19:26:17, commit-bot: I haz the power wrote: > Failed to apply patch for ...
3 years, 7 months ago (2017-05-05 21:03:13 UTC) #7
xunjieli
A friendly ping. Are we proceeding with the manual revert? Thanks.
3 years, 7 months ago (2017-05-08 13:56:13 UTC) #8
Alexei Svitkine (slow)
3 years, 7 months ago (2017-05-08 13:58:59 UTC) #9
Given revert didn't apply cleanly, maybe we can stick with this being
landed? You can then your follow up CL to fix sizes for cronet.

On May 8, 2017 9:56 AM, <xunjieli@chromium.org> wrote:

> A friendly ping. Are we proceeding with the manual revert?
> Thanks.
>
> https://codereview.chromium.org/2862333002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698