Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Unified Diff: base/trace_event/common/trace_event_common.h

Issue 2356393002: Add ExecutionMode/SequenceToken and TaskPriority as arguments of TaskScheduler tasks in tracing (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/task_scheduler/task_tracker.cc ('k') | base/trace_event/trace_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 87588f5749706befac2ae691cec8a1d0793145d9..38e3c067984ea247b829f74aa1a5e422f2241e6a 100644
--- a/base/trace_event/common/trace_event_common.h
+++ b/base/trace_event/common/trace_event_common.h
@@ -940,9 +940,11 @@
arg1_val, arg2_name, arg2_val)
// Special trace event macro to trace task execution with the location where it
-// was posted from.
+// was posted from. Optionally adding metadata in an extra parameter.
#define TRACE_TASK_EXECUTION(run_function, task) \
INTERNAL_TRACE_TASK_EXECUTION(run_function, task)
+#define TRACE_TASK_EXECUTION1(run_function, task, arg1_name, arg1_val) \
+ INTERNAL_TRACE_TASK_EXECUTION(run_function, task, arg1_name, arg1_val)
// TRACE_EVENT_METADATA* events are information related to other
// injected events, not events in their own right.
« no previous file with comments | « base/task_scheduler/task_tracker.cc ('k') | base/trace_event/trace_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698