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

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

Issue 577823002: Moves ProfilerMetricsProvider to //components/metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaase Created 6 years, 3 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/profiler_metrics_provider.h
diff --git a/chrome/browser/metrics/profiler_metrics_provider.h b/chrome/browser/metrics/profiler_metrics_provider.h
deleted file mode 100644
index 680156bf8472038a94f68ec4a9fc7510e7ab2828..0000000000000000000000000000000000000000
--- a/chrome/browser/metrics/profiler_metrics_provider.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 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_PROFILER_METRICS_PROVIDER_H_
-#define CHROME_BROWSER_METRICS_PROFILER_METRICS_PROVIDER_H_
-
-#include "base/basictypes.h"
-#include "components/metrics/metrics_provider.h"
-#include "components/metrics/proto/chrome_user_metrics_extension.pb.h"
-
-namespace tracked_objects {
-struct ProcessDataSnapshot;
-}
-
-// ProfilerMetricsProvider is responsible for filling out the |profiler_event|
-// section of the UMA proto.
-class ProfilerMetricsProvider : public metrics::MetricsProvider {
- public:
- ProfilerMetricsProvider();
- virtual ~ProfilerMetricsProvider();
-
- // metrics::MetricsDataProvider:
- virtual void ProvideGeneralMetrics(
- metrics::ChromeUserMetricsExtension* uma_proto) OVERRIDE;
-
- // Records the passed profiled data, which should be a snapshot of the
- // browser's profiled performance during startup for a single process.
- void RecordProfilerData(
- const tracked_objects::ProcessDataSnapshot& process_data,
- int process_type);
-
- private:
- // Saved cache of generated Profiler event protos, to be copied into the UMA
- // proto when ProvideGeneralMetrics() is called.
- metrics::ProfilerEventProto profiler_event_cache_;
-
- // True if this instance has recorded profiler data since the last call to
- // ProvideGeneralMetrics().
- bool has_profiler_data_;
-
- DISALLOW_COPY_AND_ASSIGN(ProfilerMetricsProvider);
-};
-
-#endif // CHROME_BROWSER_METRICS_PROFILER_METRICS_PROVIDER_H_
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.cc ('k') | chrome/browser/metrics/profiler_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698