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

Unified Diff: base/metrics/metric_sample.h

Issue 227873002: Create a histogram serialization mechanism in components/metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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: base/metrics/metric_sample.h
diff --git a/base/metrics/metric_sample.h b/base/metrics/metric_sample.h
new file mode 100644
index 0000000000000000000000000000000000000000..3c5e7e222bbe782ccc340460b4244a43cf7cb35c
--- /dev/null
+++ b/base/metrics/metric_sample.h
@@ -0,0 +1,27 @@
+// Copyright (c) 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 BASE_METRICS_METRIC_SAMPLE_H_
+# define BASE_METRICS_METRIC_SAMPLE_H_
+
+#include "base/base_export.h"
+
+namespace base {
+class BASE_EXPORT MetricSample {
+ public:
+ enum SampleType {
+ CRASH,
+ HISTOGRAM,
+ LINEAR_HISTOGRAM,
+ SPARSE_HISTOGRAM,
+ USER_ACTION
+ };
+ explicit MetricSample(SampleType t);
+ virtual ~MetricSample();
+ virtual int Write(int buffer_size, char* buffer);
+ SampleType type;
+ SampleType getType();
achaulk 2014/04/07 22:16:00 name() for accessor and name_. The variable also s
+};
+} // namespace base
+# endif // BASE_METRICS_METRIC_SAMPLE_H_

Powered by Google App Engine
This is Rietveld 408576698