Chromium Code Reviews| Index: base/debug/trace_event.h |
| diff --git a/base/debug/trace_event.h b/base/debug/trace_event.h |
| index 975403641e0208cd0695f323eb63d9d6c4de8c7e..ab628322e18ecab3e7d329cd83f82e7003c6a9a9 100644 |
| --- a/base/debug/trace_event.h |
| +++ b/base/debug/trace_event.h |
| @@ -350,6 +350,20 @@ |
| #define TRACE_EVENT_SET_SAMPLING_STATE(category, name) \ |
| TRACE_EVENT_SET_SAMPLING_STATE_FOR_BUCKET(0, category, name) |
| +#define TRACE_EVENT_SAMPLE_METADATA0(category, name) \ |
| + INTERNAL_TRACE_EVENT_ADD(TRACE_EVENT_PHASE_METADATA, category, name, \ |
| + TRACE_EVENT_FLAG_NONE | TRACE_EVENT_SCOPE_THREAD) |
|
yurys
2015/01/14 13:41:36
TRACE_EVENT_SCOPE_THREAD here and below?
alph
2015/01/14 14:31:10
The flag and scope are different domains, so I spe
|
| + |
| +#define TRACE_EVENT_SAMPLE_METADATA1(category, name, arg1_name, arg1_val) \ |
| + INTERNAL_TRACE_EVENT_ADD(TRACE_EVENT_PHASE_METADATA, category, name, \ |
| + TRACE_EVENT_FLAG_NONE | TRACE_EVENT_SCOPE_THREAD, \ |
| + arg1_name, arg1_val) |
| + |
| +#define TRACE_EVENT_SAMPLE_METADATA2(category, name, arg1_name, arg1_val, \ |
| + arg2_name, arg2_val) \ |
| + INTERNAL_TRACE_EVENT_ADD(TRACE_EVENT_PHASE_METADATA, category, name, \ |
| + TRACE_EVENT_FLAG_NONE | TRACE_EVENT_SCOPE_THREAD, \ |
| + arg1_name, arg1_val, arg2_name, arg2_val) |
| // Records a single BEGIN event called "name" immediately, with 0, 1 or 2 |
| // associated arguments. If the category is not enabled, then this |