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

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

Issue 2359503002: Let TRACE_EVENT_XXX_WITH_TIMESTAMP accept TimeTicks instead of int64_t (Closed)
Patch Set: Rebase Created 4 years, 3 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/android/early_trace_event_binding.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 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 INTERNAL_TRACE_EVENT_METADATA_ADD(category_group, name, arg1_name, arg1_val) 950 INTERNAL_TRACE_EVENT_METADATA_ADD(category_group, name, arg1_name, arg1_val)
951 951
952 // Records a clock sync event. 952 // Records a clock sync event.
953 #define TRACE_EVENT_CLOCK_SYNC_RECEIVER(sync_id) \ 953 #define TRACE_EVENT_CLOCK_SYNC_RECEIVER(sync_id) \
954 INTERNAL_TRACE_EVENT_ADD( \ 954 INTERNAL_TRACE_EVENT_ADD( \
955 TRACE_EVENT_PHASE_CLOCK_SYNC, "__metadata", "clock_sync", \ 955 TRACE_EVENT_PHASE_CLOCK_SYNC, "__metadata", "clock_sync", \
956 TRACE_EVENT_FLAG_NONE, "sync_id", sync_id) 956 TRACE_EVENT_FLAG_NONE, "sync_id", sync_id)
957 #define TRACE_EVENT_CLOCK_SYNC_ISSUER(sync_id, issue_ts, issue_end_ts) \ 957 #define TRACE_EVENT_CLOCK_SYNC_ISSUER(sync_id, issue_ts, issue_end_ts) \
958 INTERNAL_TRACE_EVENT_ADD_WITH_TIMESTAMP( \ 958 INTERNAL_TRACE_EVENT_ADD_WITH_TIMESTAMP( \
959 TRACE_EVENT_PHASE_CLOCK_SYNC, "__metadata", "clock_sync", \ 959 TRACE_EVENT_PHASE_CLOCK_SYNC, "__metadata", "clock_sync", \
960 issue_end_ts.ToInternalValue(), TRACE_EVENT_FLAG_NONE, \ 960 issue_end_ts, TRACE_EVENT_FLAG_NONE, \
961 "sync_id", sync_id, "issue_ts", issue_ts.ToInternalValue()) 961 "sync_id", sync_id, "issue_ts", issue_ts)
962 962
963 // Macros to track the life time and value of arbitrary client objects. 963 // Macros to track the life time and value of arbitrary client objects.
964 // See also TraceTrackableObject. 964 // See also TraceTrackableObject.
965 #define TRACE_EVENT_OBJECT_CREATED_WITH_ID(category_group, name, id) \ 965 #define TRACE_EVENT_OBJECT_CREATED_WITH_ID(category_group, name, id) \
966 INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ 966 INTERNAL_TRACE_EVENT_ADD_WITH_ID( \
967 TRACE_EVENT_PHASE_CREATE_OBJECT, category_group, name, id, \ 967 TRACE_EVENT_PHASE_CREATE_OBJECT, category_group, name, id, \
968 TRACE_EVENT_FLAG_NONE) 968 TRACE_EVENT_FLAG_NONE)
969 969
970 #define TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(category_group, name, id, \ 970 #define TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(category_group, name, id, \
971 snapshot) \ 971 snapshot) \
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 1111
1112 // Enum reflecting the scope of an INSTANT event. Must fit within 1112 // Enum reflecting the scope of an INSTANT event. Must fit within
1113 // TRACE_EVENT_FLAG_SCOPE_MASK. 1113 // TRACE_EVENT_FLAG_SCOPE_MASK.
1114 #define TRACE_EVENT_SCOPE_GLOBAL (static_cast<unsigned char>(0 << 3)) 1114 #define TRACE_EVENT_SCOPE_GLOBAL (static_cast<unsigned char>(0 << 3))
1115 #define TRACE_EVENT_SCOPE_PROCESS (static_cast<unsigned char>(1 << 3)) 1115 #define TRACE_EVENT_SCOPE_PROCESS (static_cast<unsigned char>(1 << 3))
1116 #define TRACE_EVENT_SCOPE_THREAD (static_cast<unsigned char>(2 << 3)) 1116 #define TRACE_EVENT_SCOPE_THREAD (static_cast<unsigned char>(2 << 3))
1117 1117
1118 #define TRACE_EVENT_SCOPE_NAME_GLOBAL ('g') 1118 #define TRACE_EVENT_SCOPE_NAME_GLOBAL ('g')
1119 #define TRACE_EVENT_SCOPE_NAME_PROCESS ('p') 1119 #define TRACE_EVENT_SCOPE_NAME_PROCESS ('p')
1120 #define TRACE_EVENT_SCOPE_NAME_THREAD ('t') 1120 #define TRACE_EVENT_SCOPE_NAME_THREAD ('t')
OLDNEW
« no previous file with comments | « base/android/early_trace_event_binding.cc ('k') | base/trace_event/trace_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698