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

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

Issue 296483004: Introduce a MetricsDataProvider interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | chrome/browser/metrics/metrics_log.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_log.h
===================================================================
--- chrome/browser/metrics/metrics_log.h (revision 271296)
+++ chrome/browser/metrics/metrics_log.h (working copy)
@@ -12,6 +12,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/memory/scoped_vector.h"
#include "chrome/browser/metrics/extension_metrics.h"
#include "chrome/browser/metrics/metrics_network_observer.h"
#include "chrome/common/metrics/variations/variations_util.h"
@@ -37,6 +38,10 @@
struct WebPluginInfo;
}
+namespace metrics {
+class MetricsDataProvider;
+}
+
namespace tracked_objects {
struct ProcessDataSnapshot;
}
@@ -89,6 +94,7 @@
// example, a pref may be mapped to a synthetic trial such that the group
// is determined by the pref value.
void RecordEnvironment(
+ const ScopedVector<metrics::MetricsDataProvider>& data_providers,
Ilya Sherman 2014/05/19 14:45:00 nit: Passing ScopedVectors is a little odd. Pleas
Ilya Sherman 2014/05/19 14:45:00 nit: Please update the docs.
Alexei Svitkine (slow) 2014/05/19 15:23:02 Didn't realise it's possible to access the underly
Alexei Svitkine (slow) 2014/05/19 15:23:02 Done.
const std::vector<content::WebPluginInfo>& plugin_list,
const GoogleUpdateMetrics& google_update_metrics,
const std::vector<chrome_variations::ActiveGroupId>& synthetic_trials);
@@ -116,9 +122,15 @@
// If this log is of type INITIAL_STABILITY_LOG, records additional info such
// as number of incomplete shutdowns as well as extra breakpad and debugger
// stats.
- void RecordStabilityMetrics(base::TimeDelta incremental_uptime,
- base::TimeDelta uptime);
+ void RecordStabilityMetrics(
+ const ScopedVector<metrics::MetricsDataProvider>& data_providers,
Ilya Sherman 2014/05/19 14:45:00 nit: Please update the docs.
Alexei Svitkine (slow) 2014/05/19 15:23:02 Done.
+ base::TimeDelta incremental_uptime,
+ base::TimeDelta uptime);
+ // Record general metrics based on the specified |providers|.
+ void RecordGeneralMetrics(
+ const ScopedVector<metrics::MetricsDataProvider>& data_providers);
+
const base::TimeTicks& creation_time() const {
return creation_time_;
}
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | chrome/browser/metrics/metrics_log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698