Add TRACE_EVENT_INSTANT_WITH_TIMESTAMP1.
Add TRACE_EVENT_INSTANT_WITH_TIMESTAMP1 to allow attaching argument to instant
events.
BUG=719687
Review-Url: https://codereview.chromium.org/2861223002
Cr-Commit-Position: refs/heads/master@{#470125}
CrOS-Libchrome-Original-Commit: 5add9bb55c86ff6bd0b4b19d90bbaee1e6ba1b3b
diff --git a/base/trace_event/common/trace_event_common.h b/base/trace_event/common/trace_event_common.h
index e87665b..76d3039 100644
--- a/base/trace_event/common/trace_event_common.h
+++ b/base/trace_event/common/trace_event_common.h
@@ -258,6 +258,12 @@
TRACE_EVENT_PHASE_INSTANT, category_group, name, timestamp, \
TRACE_EVENT_FLAG_NONE | scope)
+#define TRACE_EVENT_INSTANT_WITH_TIMESTAMP1(category_group, name, scope, \
+ timestamp, arg_name, arg_val) \
+ INTERNAL_TRACE_EVENT_ADD_WITH_TIMESTAMP( \
+ TRACE_EVENT_PHASE_INSTANT, category_group, name, timestamp, \
+ TRACE_EVENT_FLAG_NONE | scope, arg_name, arg_val)
+
// Records a single BEGIN event called "name" immediately, with 0, 1 or 2
// associated arguments. If the category is not enabled, then this
// does nothing.