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

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

Issue 981143006: Metrics provider for statistical stack profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fix clang compilation Created 5 years, 9 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/call_stack_profile_metrics_provider.h
diff --git a/chrome/browser/metrics/call_stack_profile_metrics_provider.h b/chrome/browser/metrics/call_stack_profile_metrics_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..071066924acff60263b6e8c412d9fa798300ddba
--- /dev/null
+++ b/chrome/browser/metrics/call_stack_profile_metrics_provider.h
@@ -0,0 +1,28 @@
+// Copyright 2015 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_CALL_STACK_PROFILE_METRICS_PROVIDER_H_
+#define CHROME_BROWSER_METRICS_CALL_STACK_PROFILE_METRICS_PROVIDER_H_
+
+#include "components/metrics/metrics_provider.h"
+
+namespace metrics {
+class ChromeUserMetricsExtension;
+}
+
+// Performs metrics logging for the stack sampling profiler.
+class CallStackProfileMetricsProvider : public metrics::MetricsProvider {
+ public:
+ CallStackProfileMetricsProvider();
+ ~CallStackProfileMetricsProvider() override;
+
+ // metrics::MetricsProvider:
+ void ProvideGeneralMetrics(
+ metrics::ChromeUserMetricsExtension* uma_proto) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CallStackProfileMetricsProvider);
+};
+
+#endif // CHROME_BROWSER_METRICS_CALL_STACK_PROFILE_METRICS_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698