Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/metrics/sampling_metrics_provider.h" | |
| 6 | |
| 7 #include "base/metrics/sparse_histogram.h" | |
| 8 #include "chrome/browser/metrics/chrome_metrics_services_manager_client.h" | |
| 9 #include "components/metrics/metrics_provider.h" | |
| 10 | |
| 11 namespace metrics { | |
| 12 | |
| 13 SamplingMetricsProvider::SamplingMetricsProvider() {} | |
| 14 SamplingMetricsProvider::~SamplingMetricsProvider() {} | |
| 15 | |
| 16 void SamplingMetricsProvider::ProvideGeneralMetrics( | |
|
Alexei Svitkine (slow)
2016/08/01 17:23:51
Maybe this should be ProvideStabilityMetrics - so
jwd
2016/08/01 18:57:14
Ok, so UMA_STABILITY_HISTOGRAM_ENUMERATION will ju
Alexei Svitkine (slow)
2016/08/01 18:59:02
I think we should still use a sparse histogram. Yo
jwd
2016/08/01 20:11:35
Done.
| |
| 17 ChromeUserMetricsExtension* uma_proto) { | |
| 18 UMA_HISTOGRAM_SPARSE_SLOWLY( | |
|
Alexei Svitkine (slow)
2016/08/01 17:23:51
Should we just not log this for users who are not
jwd
2016/08/01 18:57:14
Done.
| |
| 19 "UMA.SamplingRatePerMille", | |
| 20 ChromeMetricsServicesManagerClient::GetSamplingRatePerMille()); | |
| 21 } | |
| 22 | |
| 23 } // namespace metrics | |
| OLD | NEW |