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

Unified Diff: include/core/SkHistogramLogging.h

Issue 1652053004: Add Histogram Macros to Skia (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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: 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

Powered by Google App Engine
This is Rietveld 408576698