Index: base/trace_event/common/trace_event_common.h |
diff --git a/base/trace_event/common/trace_event_common.h b/base/trace_event/common/trace_event_common.h |
index 21ac61ecd5293e6d4110327150b284a0cb265a46..87dfd249862c1278f13a3728b9d94bdd1331dc62 100644 |
--- a/base/trace_event/common/trace_event_common.h |
+++ b/base/trace_event/common/trace_event_common.h |
@@ -959,41 +959,40 @@ |
// See also TraceTrackableObject. |
#define TRACE_EVENT_OBJECT_CREATED_WITH_ID(category_group, name, id) \ |
INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ |
- TRACE_EVENT_PHASE_CREATE_OBJECT, category_group, name, \ |
- TRACE_ID_DONT_MANGLE(id), TRACE_EVENT_FLAG_NONE) |
+ TRACE_EVENT_PHASE_CREATE_OBJECT, category_group, name, id, \ |
+ TRACE_EVENT_FLAG_NONE) |
#define TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(category_group, name, id, \ |
snapshot) \ |
INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ |
TRACE_EVENT_PHASE_SNAPSHOT_OBJECT, category_group, name, \ |
- TRACE_ID_DONT_MANGLE(id), TRACE_EVENT_FLAG_NONE, "snapshot", snapshot) |
+ id, TRACE_EVENT_FLAG_NONE, "snapshot", snapshot) |
-#define TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID_AND_TIMESTAMP( \ |
- category_group, name, id, timestamp, snapshot) \ |
- INTERNAL_TRACE_EVENT_ADD_WITH_ID_TID_AND_TIMESTAMP( \ |
- TRACE_EVENT_PHASE_SNAPSHOT_OBJECT, category_group, name, \ |
- TRACE_ID_DONT_MANGLE(id), TRACE_EVENT_API_CURRENT_THREAD_ID, timestamp, \ |
- TRACE_EVENT_FLAG_NONE, "snapshot", snapshot) |
+#define TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID_AND_TIMESTAMP( \ |
+ category_group, name, id, timestamp, snapshot) \ |
+ INTERNAL_TRACE_EVENT_ADD_WITH_ID_TID_AND_TIMESTAMP( \ |
+ TRACE_EVENT_PHASE_SNAPSHOT_OBJECT, category_group, name, \ |
+ id, TRACE_EVENT_API_CURRENT_THREAD_ID, timestamp, TRACE_EVENT_FLAG_NONE, \ |
+ "snapshot", snapshot) |
#define TRACE_EVENT_OBJECT_DELETED_WITH_ID(category_group, name, id) \ |
INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ |
- TRACE_EVENT_PHASE_DELETE_OBJECT, category_group, name, \ |
- TRACE_ID_DONT_MANGLE(id), TRACE_EVENT_FLAG_NONE) |
+ TRACE_EVENT_PHASE_DELETE_OBJECT, category_group, name, id, \ |
+ TRACE_EVENT_FLAG_NONE) |
// Records entering and leaving trace event contexts. |category_group| and |
// |name| specify the context category and type. |context| is a |
// snapshotted context object id. |
-#define TRACE_EVENT_ENTER_CONTEXT(category_group, name, context) \ |
- INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ |
- TRACE_EVENT_PHASE_ENTER_CONTEXT, category_group, name, \ |
- TRACE_ID_DONT_MANGLE(context), TRACE_EVENT_FLAG_NONE) |
-#define TRACE_EVENT_LEAVE_CONTEXT(category_group, name, context) \ |
- INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ |
- TRACE_EVENT_PHASE_LEAVE_CONTEXT, category_group, name, \ |
- TRACE_ID_DONT_MANGLE(context), TRACE_EVENT_FLAG_NONE) |
+#define TRACE_EVENT_ENTER_CONTEXT(category_group, name, context) \ |
+ INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ |
+ TRACE_EVENT_PHASE_ENTER_CONTEXT, category_group, name, context, \ |
+ TRACE_EVENT_FLAG_NONE) |
+#define TRACE_EVENT_LEAVE_CONTEXT(category_group, name, context) \ |
+ INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ |
+ TRACE_EVENT_PHASE_LEAVE_CONTEXT, category_group, name, context, \ |
+ TRACE_EVENT_FLAG_NONE) |
#define TRACE_EVENT_SCOPED_CONTEXT(category_group, name, context) \ |
- INTERNAL_TRACE_EVENT_SCOPED_CONTEXT(category_group, name, \ |
- TRACE_ID_DONT_MANGLE(context)) |
+ INTERNAL_TRACE_EVENT_SCOPED_CONTEXT(category_group, name, context) |
// Macro to specify that two trace IDs are identical. For example, |
// TRACE_BIND_IDS( |
@@ -1077,6 +1076,7 @@ |
#define TRACE_EVENT_FLAG_NONE (static_cast<unsigned int>(0)) |
#define TRACE_EVENT_FLAG_COPY (static_cast<unsigned int>(1 << 0)) |
#define TRACE_EVENT_FLAG_HAS_ID (static_cast<unsigned int>(1 << 1)) |
+// TODO(crbug.com/639003): Free this bit after ID mangling is deprecated. |
#define TRACE_EVENT_FLAG_MANGLE_ID (static_cast<unsigned int>(1 << 2)) |
#define TRACE_EVENT_FLAG_SCOPE_OFFSET (static_cast<unsigned int>(1 << 3)) |
#define TRACE_EVENT_FLAG_SCOPE_EXTRA (static_cast<unsigned int>(1 << 4)) |
@@ -1087,6 +1087,8 @@ |
#define TRACE_EVENT_FLAG_FLOW_OUT (static_cast<unsigned int>(1 << 9)) |
#define TRACE_EVENT_FLAG_HAS_CONTEXT_ID (static_cast<unsigned int>(1 << 10)) |
#define TRACE_EVENT_FLAG_HAS_PROCESS_ID (static_cast<unsigned int>(1 << 11)) |
+#define TRACE_EVENT_FLAG_HAS_LOCAL_ID (static_cast<unsigned int>(1 << 12)) |
+#define TRACE_EVENT_FLAG_HAS_GLOBAL_ID (static_cast<unsigned int>(1 << 13)) |
#define TRACE_EVENT_FLAG_SCOPE_MASK \ |
(static_cast<unsigned int>(TRACE_EVENT_FLAG_SCOPE_OFFSET | \ |