Index: base/trace_event/trace_event.h |
diff --git a/base/trace_event/trace_event.h b/base/trace_event/trace_event.h |
index 95ea215939fe48a7617aa7bb93ad1e490f9b401d..14448e215b70817bc8ec15e3a2636be7d723e493 100644 |
--- a/base/trace_event/trace_event.h |
+++ b/base/trace_event/trace_event.h |
@@ -302,6 +302,23 @@ TRACE_EVENT_API_CLASS_EXPORT extern \ |
// Implementation detail: internal macro to create static category and add |
// event if the category is enabled. |
+#define INTERNAL_TRACE_EVENT_ADD_WITH_TIMESTAMP(phase, category_group, name, \ |
+ timestamp, flags, ...) \ |
+ do { \ |
+ INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO(category_group); \ |
+ if (INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE()) { \ |
+ trace_event_internal::AddTraceEventWithThreadIdAndTimestamp( \ |
+ phase, INTERNAL_TRACE_EVENT_UID(category_group_enabled), name, \ |
+ trace_event_internal::kNoId, trace_event_internal::kNoId, \ |
+ TRACE_EVENT_API_CURRENT_THREAD_ID, \ |
+ base::TimeTicks::FromInternalValue(timestamp), \ |
+ flags | TRACE_EVENT_FLAG_EXPLICIT_TIMESTAMP, \ |
+ trace_event_internal::kNoId, ##__VA_ARGS__); \ |
+ } \ |
+ } while (0) |
+ |
+// Implementation detail: internal macro to create static category and add |
+// event if the category is enabled. |
#define INTERNAL_TRACE_EVENT_ADD_WITH_ID_TID_AND_TIMESTAMP(phase, \ |
category_group, name, id, thread_id, timestamp, flags, ...) \ |
do { \ |