OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 private: \ | 260 private: \ |
261 uint64_t m_cid; \ | 261 uint64_t m_cid; \ |
262 INTERNAL_TRACE_EVENT_UID(ScopedContext) \ | 262 INTERNAL_TRACE_EVENT_UID(ScopedContext) \ |
263 (const INTERNAL_TRACE_EVENT_UID(ScopedContext)&) {}; \ | 263 (const INTERNAL_TRACE_EVENT_UID(ScopedContext)&) {}; \ |
264 void operator=(const INTERNAL_TRACE_EVENT_UID(ScopedContext)&) {}; \ | 264 void operator=(const INTERNAL_TRACE_EVENT_UID(ScopedContext)&) {}; \ |
265 }; \ | 265 }; \ |
266 INTERNAL_TRACE_EVENT_UID(ScopedContext) \ | 266 INTERNAL_TRACE_EVENT_UID(ScopedContext) \ |
267 INTERNAL_TRACE_EVENT_UID(scoped_context)(context.data()); | 267 INTERNAL_TRACE_EVENT_UID(scoped_context)(context.data()); |
268 | 268 |
269 // These values must be in sync with base::debug::TraceLog::CategoryGroupEnabled
Flags. | 269 // These values must be in sync with base::debug::TraceLog::CategoryGroupEnabled
Flags. |
270 #define ENABLED_FOR_RECORDING (1 << 0) | 270 #define INTERNAL_ENABLED_FOR_RECORDING (1 << 0) |
271 #define ENABLED_FOR_EVENT_CALLBACK (1 << 2) | 271 #define INTERNAL_ENABLED_FOR_EVENT_CALLBACK (1 << 2) |
272 | 272 |
273 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE() \ | 273 #define INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE() \ |
274 (*INTERNALTRACEEVENTUID(categoryGroupEnabled) & (ENABLED_FOR_RECORDING | ENA
BLED_FOR_EVENT_CALLBACK)) | 274 (*INTERNALTRACEEVENTUID(categoryGroupEnabled) & (INTERNAL_ENABLED_FOR_RECORD
ING | INTERNAL_ENABLED_FOR_EVENT_CALLBACK)) |
275 | 275 |
276 #define INTERNAL_TRACE_MEMORY(category, name) | 276 #define INTERNAL_TRACE_MEMORY(category, name) |
277 | 277 |
278 namespace blink { | 278 namespace blink { |
279 | 279 |
280 namespace TraceEvent { | 280 namespace TraceEvent { |
281 | 281 |
282 // Specify these values when the corresponding argument of addTraceEvent is not | 282 // Specify these values when the corresponding argument of addTraceEvent is not |
283 // used. | 283 // used. |
284 const int zeroNumArgs = 0; | 284 const int zeroNumArgs = 0; |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 const char* m_categoryGroup; | 681 const char* m_categoryGroup; |
682 const char* m_name; | 682 const char* m_name; |
683 IDType m_id; | 683 IDType m_id; |
684 }; | 684 }; |
685 | 685 |
686 } // namespace TraceEvent | 686 } // namespace TraceEvent |
687 | 687 |
688 } // namespace blink | 688 } // namespace blink |
689 | 689 |
690 #endif | 690 #endif |
OLD | NEW |