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

Unified Diff: chrome/browser/metrics/sampling_metrics_provider.h

Issue 2180373003: Adding reporting of metrics sampling rate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/sampling_metrics_provider.h
diff --git a/chrome/browser/metrics/sampling_metrics_provider.h b/chrome/browser/metrics/sampling_metrics_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..aa6328046dbdb3245818670f4162ae8e31be4360
--- /dev/null
+++ b/chrome/browser/metrics/sampling_metrics_provider.h
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_METRICS_SAMPLING_METRICS_PROVIDER_H_
+#define CHROME_BROWSER_METRICS_SAMPLING_METRICS_PROVIDER_H_
+
+#include "components/metrics/metrics_provider.h"
+
+namespace metrics {
+
+// Provides metrics related to sampling of metrics reporting clients. In
+// particular, the rate at which clients are sampled.
+class SamplingMetricsProvider : public MetricsProvider {
+ public:
+ SamplingMetricsProvider();
+ ~SamplingMetricsProvider() override;
+
+ private:
+ // MetricsProvider:
+ void ProvideStabilityMetrics(
+ SystemProfileProto* system_profile_proto) override;
+
+ DISALLOW_COPY_AND_ASSIGN(SamplingMetricsProvider);
+};
+
+} // namespace metrics
+
+#endif // CHROME_BROWSER_METRICS_SAMPLING_METRICS_PROVIDER_H_
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_services_manager_client.cc ('k') | chrome/browser/metrics/sampling_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698