Index: base/debug/trace_event.h |
diff --git a/base/debug/trace_event.h b/base/debug/trace_event.h |
index 6805513b66aeb5a005e98937f97ea1580f398449..7257465b23bd27cfd7099ccaead61e4899a8e225 100644 |
--- a/base/debug/trace_event.h |
+++ b/base/debug/trace_event.h |
@@ -233,6 +233,14 @@ |
INTERNAL_TRACE_EVENT_ADD_SCOPED( \ |
category_group, name, arg1_name, arg1_val, arg2_name, arg2_val) |
+// Records events like TRACE_EVENT2 but uses |arg2_val| for memory tracing. |
+// Use this where |name| is too generic to accurately aggregate allocations. |
+#define TRACE_EVENT2_MEMORY_ARG2( \ |
+ category_group, name, arg1_name, arg1_val, arg2_name, arg2_val) \ |
+ INTERNAL_TRACE_MEMORY(category_group, arg2_val) \ |
+ INTERNAL_TRACE_EVENT_ADD_SCOPED( \ |
+ category_group, name, arg1_name, arg1_val, arg2_name, arg2_val) |
dsinclair
2013/08/23 13:39:47
I like the use of a macro over doing it was done i
|
+ |
// UNSHIPPED_TRACE_EVENT* are like TRACE_EVENT* except that they are not |
// included in official builds. |