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 under third_party_mods/chromium or at: | 3 // found in the LICENSE file under third_party_mods/chromium or at: |
4 // http://src.chromium.org/svn/trunk/src/LICENSE | 4 // http://src.chromium.org/svn/trunk/src/LICENSE |
5 | 5 |
6 #ifndef WEBRTC_BASE_TRACE_EVENT_H_ | 6 #ifndef WEBRTC_BASE_TRACE_EVENT_H_ |
7 #define WEBRTC_BASE_TRACE_EVENT_H_ | 7 #define WEBRTC_BASE_TRACE_EVENT_H_ |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 // By default, const char* argument values are assumed to have long-lived scope | 145 // By default, const char* argument values are assumed to have long-lived scope |
146 // and will not be copied. Use this macro to force a const char* to be copied. | 146 // and will not be copied. Use this macro to force a const char* to be copied. |
147 #define TRACE_STR_COPY(str) \ | 147 #define TRACE_STR_COPY(str) \ |
148 webrtc::trace_event_internal::TraceStringWithCopy(str) | 148 webrtc::trace_event_internal::TraceStringWithCopy(str) |
149 | 149 |
150 // This will mark the trace event as disabled by default. The user will need | 150 // This will mark the trace event as disabled by default. The user will need |
151 // to explicitly enable the event. | 151 // to explicitly enable the event. |
152 #define TRACE_DISABLED_BY_DEFAULT(name) "disabled-by-default-" name | 152 #define TRACE_DISABLED_BY_DEFAULT(name) "disabled-by-default-" name |
153 | 153 |
154 // By default, uint64 ID argument values are not mangled with the Process ID in | 154 // By default, uint64_t ID argument values are not mangled with the Process ID |
| 155 // in |
155 // TRACE_EVENT_ASYNC macros. Use this macro to force Process ID mangling. | 156 // TRACE_EVENT_ASYNC macros. Use this macro to force Process ID mangling. |
156 #define TRACE_ID_MANGLE(id) \ | 157 #define TRACE_ID_MANGLE(id) \ |
157 webrtc::trace_event_internal::TraceID::ForceMangle(id) | 158 webrtc::trace_event_internal::TraceID::ForceMangle(id) |
158 | 159 |
159 // Records a pair of begin and end events called "name" for the current | 160 // Records a pair of begin and end events called "name" for the current |
160 // scope, with 0, 1 or 2 associated arguments. If the category is not | 161 // scope, with 0, 1 or 2 associated arguments. If the category is not |
161 // enabled, then this does nothing. | 162 // enabled, then this does nothing. |
162 // - category and name strings must have application lifetime (statics or | 163 // - category and name strings must have application lifetime (statics or |
163 // literals). They may not include " chars. | 164 // literals). They may not include " chars. |
164 #define TRACE_EVENT0(category, name) \ | 165 #define TRACE_EVENT0(category, name) \ |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 const char* name; | 908 const char* name; |
908 }; | 909 }; |
909 Data* p_data_; | 910 Data* p_data_; |
910 Data data_; | 911 Data data_; |
911 }; | 912 }; |
912 | 913 |
913 } // namespace trace_event_internal | 914 } // namespace trace_event_internal |
914 } // namespace webrtc | 915 } // namespace webrtc |
915 | 916 |
916 #endif // WEBRTC_BASE_TRACE_EVENT_H_ | 917 #endif // WEBRTC_BASE_TRACE_EVENT_H_ |
OLD | NEW |