Index: include/core/SkHistogramLogging.h |
diff --git a/include/core/SkHistogramLogging.h b/include/core/SkHistogramLogging.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7fd41f51a53ed814ad70fdbfe521ab6cf7e98bfa |
--- /dev/null |
+++ b/include/core/SkHistogramLogging.h |
@@ -0,0 +1,25 @@ |
+/* |
+ * Copyright 2016 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#ifndef SkHistogramLogging_DEFINED |
+#define SkHistogramLogging_DEFINED |
+ |
+#ifdef SK_HISTOGRAM_LOGGING_CUSTOM_SETUP_HEADER |
+ // This header file, if present, should define alternative implementations of |
+ // the macros defined in the #else block. |
+ #include SK_HISTOGRAM_LOGGING_CUSTOM_SETUP_HEADER |
+#else |
+ // Macro used to track a boolean event. Value must be either true or false. |
+ #define SK_HISTOGRAM_BOOLEAN(name, value) |
+ |
+ // Macro used to track the frequency of certain values of an enumeration. All |
+ // values must be less than |boundary_value| and |boundary_value| must not |
+ // change over multiple calls. |
+ #define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value) |
+#endif |
+ |
+#endif |