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

Side by Side Diff: base/trace_event/common/trace_event_common.h

Issue 1221873002: Change sampler code events phase from instant to meta. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a comment Created 4 years, 10 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 | « no previous file | base/trace_event/memory_dump_manager.cc » ('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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 arg1_val) \ 919 arg1_val) \
920 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_FLOW_END, category_group, \ 920 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_FLOW_END, category_group, \
921 name, id, TRACE_EVENT_FLAG_COPY, arg1_name, \ 921 name, id, TRACE_EVENT_FLAG_COPY, arg1_name, \
922 arg1_val) 922 arg1_val)
923 #define TRACE_EVENT_COPY_FLOW_END2(category_group, name, id, arg1_name, \ 923 #define TRACE_EVENT_COPY_FLOW_END2(category_group, name, id, arg1_name, \
924 arg1_val, arg2_name, arg2_val) \ 924 arg1_val, arg2_name, arg2_val) \
925 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_FLOW_END, category_group, \ 925 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_FLOW_END, category_group, \
926 name, id, TRACE_EVENT_FLAG_COPY, arg1_name, \ 926 name, id, TRACE_EVENT_FLAG_COPY, arg1_name, \
927 arg1_val, arg2_name, arg2_val) 927 arg1_val, arg2_name, arg2_val)
928 928
929 // TRACE_EVENT_METADATA* events are information related to other
930 // injected events, not events in their own right.
931 #define TRACE_EVENT_METADATA1(category_group, name, arg1_name, arg1_val) \
932 INTERNAL_TRACE_EVENT_METADATA_ADD(category_group, name, arg1_name, arg1_val)
933
929 // Records a clock sync event. 934 // Records a clock sync event.
930 #define TRACE_EVENT_CLOCK_SYNC_RECEIVER(sync_id) \ 935 #define TRACE_EVENT_CLOCK_SYNC_RECEIVER(sync_id) \
931 INTERNAL_TRACE_EVENT_ADD( \ 936 INTERNAL_TRACE_EVENT_ADD( \
932 TRACE_EVENT_PHASE_CLOCK_SYNC, "__metadata", "clock_sync", \ 937 TRACE_EVENT_PHASE_CLOCK_SYNC, "__metadata", "clock_sync", \
933 TRACE_EVENT_FLAG_NONE, "sync_id", sync_id) 938 TRACE_EVENT_FLAG_NONE, "sync_id", sync_id)
934 #define TRACE_EVENT_CLOCK_SYNC_ISSUER(sync_id, issue_ts, issue_end_ts) \ 939 #define TRACE_EVENT_CLOCK_SYNC_ISSUER(sync_id, issue_ts, issue_end_ts) \
935 INTERNAL_TRACE_EVENT_ADD_WITH_TIMESTAMP( \ 940 INTERNAL_TRACE_EVENT_ADD_WITH_TIMESTAMP( \
936 TRACE_EVENT_PHASE_CLOCK_SYNC, "__metadata", "clock_sync", \ 941 TRACE_EVENT_PHASE_CLOCK_SYNC, "__metadata", "clock_sync", \
937 issue_end_ts.ToInternalValue(), TRACE_EVENT_FLAG_NONE, \ 942 issue_end_ts.ToInternalValue(), TRACE_EVENT_FLAG_NONE, \
938 "sync_id", sync_id, "issue_ts", issue_ts.ToInternalValue()) 943 "sync_id", sync_id, "issue_ts", issue_ts.ToInternalValue())
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 1079
1075 // Enum reflecting the scope of an INSTANT event. Must fit within 1080 // Enum reflecting the scope of an INSTANT event. Must fit within
1076 // TRACE_EVENT_FLAG_SCOPE_MASK. 1081 // TRACE_EVENT_FLAG_SCOPE_MASK.
1077 #define TRACE_EVENT_SCOPE_GLOBAL (static_cast<unsigned char>(0 << 3)) 1082 #define TRACE_EVENT_SCOPE_GLOBAL (static_cast<unsigned char>(0 << 3))
1078 #define TRACE_EVENT_SCOPE_PROCESS (static_cast<unsigned char>(1 << 3)) 1083 #define TRACE_EVENT_SCOPE_PROCESS (static_cast<unsigned char>(1 << 3))
1079 #define TRACE_EVENT_SCOPE_THREAD (static_cast<unsigned char>(2 << 3)) 1084 #define TRACE_EVENT_SCOPE_THREAD (static_cast<unsigned char>(2 << 3))
1080 1085
1081 #define TRACE_EVENT_SCOPE_NAME_GLOBAL ('g') 1086 #define TRACE_EVENT_SCOPE_NAME_GLOBAL ('g')
1082 #define TRACE_EVENT_SCOPE_NAME_PROCESS ('p') 1087 #define TRACE_EVENT_SCOPE_NAME_PROCESS ('p')
1083 #define TRACE_EVENT_SCOPE_NAME_THREAD ('t') 1088 #define TRACE_EVENT_SCOPE_NAME_THREAD ('t')
OLDNEW
« no previous file with comments | « no previous file | base/trace_event/memory_dump_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698