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

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

Issue 2354163002: [tracing] Remove event callback mode in TraceLog (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 | « no previous file | base/trace_event/trace_event_unittest.cc » ('j') | base/trace_event/trace_log.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 bucket_number, category, name) \ 68 bucket_number, category, name) \
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 | \
79 base::trace_event::TraceLog::ENABLED_FOR_ETW_EXPORT | \ 78 base::trace_event::TraceLog::ENABLED_FOR_ETW_EXPORT | \
80 base::trace_event::TraceLog::ENABLED_FOR_FILTERING)) 79 base::trace_event::TraceLog::ENABLED_FOR_FILTERING))
81 80
82 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_FILTERING_MODE( \ 81 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_FILTERING_MODE( \
83 category_group_enabled) \ 82 category_group_enabled) \
84 UNLIKELY(category_group_enabled& \ 83 UNLIKELY(category_group_enabled& \
85 base::trace_event::TraceLog::ENABLED_FOR_FILTERING) 84 base::trace_event::TraceLog::ENABLED_FOR_FILTERING)
86 85
87 //////////////////////////////////////////////////////////////////////////////// 86 ////////////////////////////////////////////////////////////////////////////////
88 // Implementation specific tracing API definitions. 87 // Implementation specific tracing API definitions.
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 const char* name_; 1122 const char* name_;
1124 IDType id_; 1123 IDType id_;
1125 1124
1126 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); 1125 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject);
1127 }; 1126 };
1128 1127
1129 } // namespace trace_event 1128 } // namespace trace_event
1130 } // namespace base 1129 } // namespace base
1131 1130
1132 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ 1131 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_
OLDNEW
« no previous file with comments | « no previous file | base/trace_event/trace_event_unittest.cc » ('j') | base/trace_event/trace_log.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698