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

Unified Diff: base/debug/trace_event.h

Issue 780653007: Added GL_CHROMIUM_trace_marker feature as well as gpu_toplevel markers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed render host for android tracing Created 6 years 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/debug/trace_event.h
diff --git a/base/debug/trace_event.h b/base/debug/trace_event.h
index 62a9b1f047a4b24d49cf4e14c3325120d39f25b6..58d55ddd653068c5e9f2770b1b25db7abcc9a010 100644
--- a/base/debug/trace_event.h
+++ b/base/debug/trace_event.h
@@ -788,6 +788,17 @@
(base::debug::TraceLog::ENABLED_FOR_RECORDING | \
base::debug::TraceLog::ENABLED_FOR_EVENT_CALLBACK))
+// Macros to track GPU timings much like the CPU variants.
+#define TRACE_GPU_EVENT_BEGIN0(context, category_group, name) \
+ do { \
+ context->TraceBeginCHROMIUM(category_group, name); \
vmiura 2014/12/09 00:18:10 I think we should check if the category is enabled
+ } while (0)
+
+#define TRACE_GPU_EVENT_END0(context) \
+ do { \
+ context->TraceEndCHROMIUM(); \
+ } while (0)
+
// Macro to efficiently determine if a given category group is enabled.
#define TRACE_EVENT_CATEGORY_GROUP_ENABLED(category_group, ret) \
do { \

Powered by Google App Engine
This is Rietveld 408576698