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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This header file defines the set of trace_event macros without specifying 5 // This header file defines the set of trace_event macros without specifying
6 // how the events actually get collected and stored. If you need to expose trace 6 // how the events actually get collected and stored. If you need to expose trace
7 // events to some other universe, you can copy-and-paste this file as well as 7 // events to some other universe, you can copy-and-paste this file as well as
8 // trace_event.h, modifying the macros contained there as necessary for the 8 // trace_event.h, modifying the macros contained there as necessary for the
9 // target platform. The end result is that multiple libraries can funnel events 9 // target platform. The end result is that multiple libraries can funnel events
10 // through to a shared trace event collector. 10 // through to a shared trace event collector.
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_FLOW_END, category_group, \ 933 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_FLOW_END, category_group, \
934 name, id, TRACE_EVENT_FLAG_COPY, arg1_name, \ 934 name, id, TRACE_EVENT_FLAG_COPY, arg1_name, \
935 arg1_val) 935 arg1_val)
936 #define TRACE_EVENT_COPY_FLOW_END2(category_group, name, id, arg1_name, \ 936 #define TRACE_EVENT_COPY_FLOW_END2(category_group, name, id, arg1_name, \
937 arg1_val, arg2_name, arg2_val) \ 937 arg1_val, arg2_name, arg2_val) \
938 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_FLOW_END, category_group, \ 938 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_FLOW_END, category_group, \
939 name, id, TRACE_EVENT_FLAG_COPY, arg1_name, \ 939 name, id, TRACE_EVENT_FLAG_COPY, arg1_name, \
940 arg1_val, arg2_name, arg2_val) 940 arg1_val, arg2_name, arg2_val)
941 941
942 // Special trace event macro to trace task execution with the location where it 942 // Special trace event macro to trace task execution with the location where it
943 // was posted from. 943 // was posted from. Optionally adding metadata in an extra parameter.
944 #define TRACE_TASK_EXECUTION(run_function, task) \ 944 #define TRACE_TASK_EXECUTION(run_function, task) \
945 INTERNAL_TRACE_TASK_EXECUTION(run_function, task) 945 INTERNAL_TRACE_TASK_EXECUTION(run_function, task)
946 #define TRACE_TASK_EXECUTION1(run_function, task, arg1_name, arg1_val) \
947 INTERNAL_TRACE_TASK_EXECUTION(run_function, task, arg1_name, arg1_val)
946 948
947 // TRACE_EVENT_METADATA* events are information related to other 949 // TRACE_EVENT_METADATA* events are information related to other
948 // injected events, not events in their own right. 950 // injected events, not events in their own right.
949 #define TRACE_EVENT_METADATA1(category_group, name, arg1_name, arg1_val) \ 951 #define TRACE_EVENT_METADATA1(category_group, name, arg1_name, arg1_val) \
950 INTERNAL_TRACE_EVENT_METADATA_ADD(category_group, name, arg1_name, arg1_val) 952 INTERNAL_TRACE_EVENT_METADATA_ADD(category_group, name, arg1_name, arg1_val)
951 953
952 // Records a clock sync event. 954 // Records a clock sync event.
953 #define TRACE_EVENT_CLOCK_SYNC_RECEIVER(sync_id) \ 955 #define TRACE_EVENT_CLOCK_SYNC_RECEIVER(sync_id) \
954 INTERNAL_TRACE_EVENT_ADD( \ 956 INTERNAL_TRACE_EVENT_ADD( \
955 TRACE_EVENT_PHASE_CLOCK_SYNC, "__metadata", "clock_sync", \ 957 TRACE_EVENT_PHASE_CLOCK_SYNC, "__metadata", "clock_sync", \
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 1113
1112 // Enum reflecting the scope of an INSTANT event. Must fit within 1114 // Enum reflecting the scope of an INSTANT event. Must fit within
1113 // TRACE_EVENT_FLAG_SCOPE_MASK. 1115 // TRACE_EVENT_FLAG_SCOPE_MASK.
1114 #define TRACE_EVENT_SCOPE_GLOBAL (static_cast<unsigned char>(0 << 3)) 1116 #define TRACE_EVENT_SCOPE_GLOBAL (static_cast<unsigned char>(0 << 3))
1115 #define TRACE_EVENT_SCOPE_PROCESS (static_cast<unsigned char>(1 << 3)) 1117 #define TRACE_EVENT_SCOPE_PROCESS (static_cast<unsigned char>(1 << 3))
1116 #define TRACE_EVENT_SCOPE_THREAD (static_cast<unsigned char>(2 << 3)) 1118 #define TRACE_EVENT_SCOPE_THREAD (static_cast<unsigned char>(2 << 3))
1117 1119
1118 #define TRACE_EVENT_SCOPE_NAME_GLOBAL ('g') 1120 #define TRACE_EVENT_SCOPE_NAME_GLOBAL ('g')
1119 #define TRACE_EVENT_SCOPE_NAME_PROCESS ('p') 1121 #define TRACE_EVENT_SCOPE_NAME_PROCESS ('p')
1120 #define TRACE_EVENT_SCOPE_NAME_THREAD ('t') 1122 #define TRACE_EVENT_SCOPE_NAME_THREAD ('t')
OLDNEW
« 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