Chromium Code Reviews| 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 13 matching lines...) Expand all Loading... | |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 // This header file defines implementation details of how the trace macros in | 26 // This header file defines implementation details of how the trace macros in |
| 27 // TraceEventCommon.h collect and store trace events. Anything not | 27 // TraceEventCommon.h collect and store trace events. Anything not |
| 28 // implementation-specific should go in TraceEventCommon.h instead of here. | 28 // implementation-specific should go in TraceEventCommon.h instead of here. |
| 29 | 29 |
| 30 #ifndef TraceEvent_h | 30 #ifndef TraceEvent_h |
| 31 #define TraceEvent_h | 31 #define TraceEvent_h |
| 32 | 32 |
| 33 #include "platform/EventTracer.h" | 33 #include "platform/EventTracer.h" |
| 34 #include "platform/TraceEventCommon.h" | 34 #include "platform/tracing/TraceEventCommon.h" |
| 35 | 35 |
| 36 #include "platform/TracedValue.h" | 36 #include "platform/tracing/TracedValue.h" |
| 37 #include "wtf/Allocator.h" | 37 #include "wtf/Allocator.h" |
| 38 #include "wtf/DynamicAnnotations.h" | 38 #include "wtf/DynamicAnnotations.h" |
| 39 #include "wtf/Noncopyable.h" | 39 #include "wtf/Noncopyable.h" |
| 40 #include "wtf/text/CString.h" | 40 #include "wtf/text/CString.h" |
| 41 #include <memory> | 41 #include <memory> |
| 42 | 42 |
| 43 //////////////////////////////////////////////////////////////////////////////// | 43 //////////////////////////////////////////////////////////////////////////////// |
| 44 // Implementation specific tracing API definitions. | 44 // Implementation specific tracing API definitions. |
|
haraken
2016/09/16 07:51:32
This is clearly out of the scope of this CL, but w
jbroman
2016/09/16 12:02:11
FYI, wangxianzhu@ says he intends to do this:
http
| |
| 45 | 45 |
| 46 // By default, const char* argument values are assumed to have long-lived scope | 46 // By default, const char* argument values are assumed to have long-lived scope |
| 47 // and will not be copied. Use this macro to force a const char* to be copied. | 47 // and will not be copied. Use this macro to force a const char* to be copied. |
| 48 #define TRACE_STR_COPY(str) \ | 48 #define TRACE_STR_COPY(str) \ |
| 49 blink::TraceEvent::TraceStringWithCopy(str) | 49 blink::TraceEvent::TraceStringWithCopy(str) |
| 50 | 50 |
| 51 // By default, uint64 ID argument values are not mangled with the Process ID in | 51 // By default, uint64 ID argument values are not mangled with the Process ID in |
| 52 // TRACE_EVENT_ASYNC macros. Use this macro to force Process ID mangling. | 52 // TRACE_EVENT_ASYNC macros. Use this macro to force Process ID mangling. |
| 53 #define TRACE_ID_MANGLE(id) \ | 53 #define TRACE_ID_MANGLE(id) \ |
| 54 blink::TraceEvent::TraceID::ForceMangle(id) | 54 blink::TraceEvent::TraceID::ForceMangle(id) |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 682 const char* m_categoryGroup; | 682 const char* m_categoryGroup; |
| 683 const char* m_name; | 683 const char* m_name; |
| 684 IDType m_id; | 684 IDType m_id; |
| 685 }; | 685 }; |
| 686 | 686 |
| 687 } // namespace TraceEvent | 687 } // namespace TraceEvent |
| 688 | 688 |
| 689 } // namespace blink | 689 } // namespace blink |
| 690 | 690 |
| 691 #endif | 691 #endif |
| OLD | NEW |