OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_H_ | 5 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_H_ |
6 #define BASE_TRACE_EVENT_TRACE_EVENT_H_ | 6 #define BASE_TRACE_EVENT_TRACE_EVENT_H_ |
7 | 7 |
8 // This header file defines implementation details of how the trace macros in | 8 // This header file defines implementation details of how the trace macros in |
9 // trace_event_common.h collect and store trace events. Anything not | 9 // trace_event_common.h collect and store trace events. Anything not |
10 // implementation-specific should go in trace_event_common.h instead of here. | 10 // implementation-specific should go in trace_event_common.h instead of here. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 trace_event_internal::TraceEventSamplingStateScope<bucket_number> \ | 69 trace_event_internal::TraceEventSamplingStateScope<bucket_number> \ |
70 traceEventSamplingScope(category "\0" name); | 70 traceEventSamplingScope(category "\0" name); |
71 | 71 |
72 #define TRACE_EVENT_API_CURRENT_THREAD_ID \ | 72 #define TRACE_EVENT_API_CURRENT_THREAD_ID \ |
73 static_cast<int>(base::PlatformThread::CurrentId()) | 73 static_cast<int>(base::PlatformThread::CurrentId()) |
74 | 74 |
75 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE() \ | 75 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE() \ |
76 UNLIKELY(*INTERNAL_TRACE_EVENT_UID(category_group_enabled) & \ | 76 UNLIKELY(*INTERNAL_TRACE_EVENT_UID(category_group_enabled) & \ |
77 (base::trace_event::TraceLog::ENABLED_FOR_RECORDING | \ | 77 (base::trace_event::TraceLog::ENABLED_FOR_RECORDING | \ |
78 base::trace_event::TraceLog::ENABLED_FOR_EVENT_CALLBACK | \ | 78 base::trace_event::TraceLog::ENABLED_FOR_EVENT_CALLBACK | \ |
79 base::trace_event::TraceLog::ENABLED_FOR_ETW_EXPORT)) | 79 base::trace_event::TraceLog::ENABLED_FOR_ETW_EXPORT | \ |
| 80 base::trace_event::TraceLog::ENABLED_FOR_FILTERING)) |
80 | 81 |
81 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_FILTERING_MODE( \ | 82 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_FILTERING_MODE( \ |
82 category_group_enabled) \ | 83 category_group_enabled) \ |
83 UNLIKELY(category_group_enabled& \ | 84 UNLIKELY(category_group_enabled& \ |
84 base::trace_event::TraceLog::ENABLED_FOR_FILTERING) | 85 base::trace_event::TraceLog::ENABLED_FOR_FILTERING) |
85 | 86 |
86 //////////////////////////////////////////////////////////////////////////////// | 87 //////////////////////////////////////////////////////////////////////////////// |
87 // Implementation specific tracing API definitions. | 88 // Implementation specific tracing API definitions. |
88 | 89 |
89 // Get a pointer to the enabled state of the given trace category. Only | 90 // Get a pointer to the enabled state of the given trace category. Only |
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 const char* name_; | 1128 const char* name_; |
1128 IDType id_; | 1129 IDType id_; |
1129 | 1130 |
1130 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); | 1131 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); |
1131 }; | 1132 }; |
1132 | 1133 |
1133 } // namespace trace_event | 1134 } // namespace trace_event |
1134 } // namespace base | 1135 } // namespace base |
1135 | 1136 |
1136 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ | 1137 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ |
OLD | NEW |