Index: base/debug/trace_event.h |
diff --git a/base/debug/trace_event.h b/base/debug/trace_event.h |
index aa4cc759b79eeabca051ff795c07455cf56eb3c2..2ee7dc195139a68272a5a991cce4bea938e1d03d 100644 |
--- a/base/debug/trace_event.h |
+++ b/base/debug/trace_event.h |
@@ -193,6 +193,7 @@ |
#include "base/atomicops.h" |
#include "base/debug/trace_event_impl.h" |
+#include "base/debug/trace_memory.h" |
#include "build/build_config.h" |
// By default, const char* argument values are assumed to have long-lived scope |
@@ -220,13 +221,16 @@ |
// - category and name strings must have application lifetime (statics or |
// literals). They may not include " chars. |
#define TRACE_EVENT0(category_group, name) \ |
+ TRACE_MEMORY(category_group, name) \ |
INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name) |
#define TRACE_EVENT1(category_group, name, arg1_name, arg1_val) \ |
+ TRACE_MEMORY(category_group, name) \ |
INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val) |
-#define TRACE_EVENT2(category_group, name, arg1_name, arg1_val, arg2_name, \ |
- arg2_val) \ |
- INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val, \ |
- arg2_name, arg2_val) |
+#define TRACE_EVENT2( \ |
+ category_group, name, arg1_name, arg1_val, arg2_name, arg2_val) \ |
+ TRACE_MEMORY(category_group, name) \ |
nduca
2013/06/20 20:09:29
should we prefix these defines with INTERNAL_TRACE
James Cook
2013/06/29 00:02:42
Done.
|
+ INTERNAL_TRACE_EVENT_ADD_SCOPED( \ |
+ category_group, name, arg1_name, arg1_val, arg2_name, arg2_val) |
// Same as TRACE_EVENT except that they are not included in official builds. |
#ifdef OFFICIAL_BUILD |