| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 #define TRACE_ID_GLOBAL(id) trace_event_internal::TraceID::GlobalId(id) | 49 #define TRACE_ID_GLOBAL(id) trace_event_internal::TraceID::GlobalId(id) |
| 50 #define TRACE_ID_LOCAL(id) trace_event_internal::TraceID::LocalId(id) | 50 #define TRACE_ID_LOCAL(id) trace_event_internal::TraceID::LocalId(id) |
| 51 | 51 |
| 52 #define TRACE_EVENT_API_CURRENT_THREAD_ID \ | 52 #define TRACE_EVENT_API_CURRENT_THREAD_ID \ |
| 53 static_cast<int>(base::PlatformThread::CurrentId()) | 53 static_cast<int>(base::PlatformThread::CurrentId()) |
| 54 | 54 |
| 55 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE() \ | 55 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE() \ |
| 56 UNLIKELY(*INTERNAL_TRACE_EVENT_UID(category_group_enabled) & \ | 56 UNLIKELY(*INTERNAL_TRACE_EVENT_UID(category_group_enabled) & \ |
| 57 (base::trace_event::TraceLog::ENABLED_FOR_RECORDING | \ | 57 (base::trace_event::TraceLog::ENABLED_FOR_RECORDING | \ |
| 58 base::trace_event::TraceLog::ENABLED_FOR_EVENT_CALLBACK | \ | |
| 59 base::trace_event::TraceLog::ENABLED_FOR_ETW_EXPORT | \ | 58 base::trace_event::TraceLog::ENABLED_FOR_ETW_EXPORT | \ |
| 60 base::trace_event::TraceLog::ENABLED_FOR_FILTERING)) | 59 base::trace_event::TraceLog::ENABLED_FOR_FILTERING)) |
| 61 | 60 |
| 62 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_FILTERING_MODE( \ | 61 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_FILTERING_MODE( \ |
| 63 category_group_enabled) \ | 62 category_group_enabled) \ |
| 64 UNLIKELY(category_group_enabled& \ | 63 UNLIKELY(category_group_enabled& \ |
| 65 base::trace_event::TraceLog::ENABLED_FOR_FILTERING) | 64 base::trace_event::TraceLog::ENABLED_FOR_FILTERING) |
| 66 | 65 |
| 67 //////////////////////////////////////////////////////////////////////////////// | 66 //////////////////////////////////////////////////////////////////////////////// |
| 68 // Implementation specific tracing API definitions. | 67 // Implementation specific tracing API definitions. |
| (...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 const char* name_; | 1086 const char* name_; |
| 1088 IDType id_; | 1087 IDType id_; |
| 1089 | 1088 |
| 1090 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); | 1089 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); |
| 1091 }; | 1090 }; |
| 1092 | 1091 |
| 1093 } // namespace trace_event | 1092 } // namespace trace_event |
| 1094 } // namespace base | 1093 } // namespace base |
| 1095 | 1094 |
| 1096 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ | 1095 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ |
| OLD | NEW |