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

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

Issue 2259493003: [tracing] Add trace events filtering predicate for heap profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@heap_prof_filter
Patch Set: Created 4 years, 4 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/trace_event/trace_config.cc ('k') | base/trace_event/trace_event_unittest.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 (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
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))
ssid 2016/08/18 18:03:12 As far as I can see there is no harm in adding thi
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
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_
OLDNEW
« no previous file with comments | « base/trace_event/trace_config.cc ('k') | base/trace_event/trace_event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698