| 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. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This header file defines the set of trace_event macros without specifying | 5 // This header file defines the set of trace_event macros without specifying |
| 6 // how the events actually get collected and stored. If you need to expose trace | 6 // how the events actually get collected and stored. If you need to expose trace |
| 7 // events to some other universe, you can copy-and-paste this file as well as | 7 // events to some other universe, you can copy-and-paste this file as well as |
| 8 // trace_event.h, modifying the macros contained there as necessary for the | 8 // trace_event.h, modifying the macros contained there as necessary for the |
| 9 // target platform. The end result is that multiple libraries can funnel events | 9 // target platform. The end result is that multiple libraries can funnel events |
| 10 // through to a shared trace event collector. | 10 // through to a shared trace event collector. |
| (...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1030 // Flags for changing the behavior of TRACE_EVENT_API_ADD_TRACE_EVENT. | 1030 // Flags for changing the behavior of TRACE_EVENT_API_ADD_TRACE_EVENT. |
| 1031 #define TRACE_EVENT_FLAG_NONE (static_cast<unsigned char>(0)) | 1031 #define TRACE_EVENT_FLAG_NONE (static_cast<unsigned char>(0)) |
| 1032 #define TRACE_EVENT_FLAG_COPY (static_cast<unsigned char>(1 << 0)) | 1032 #define TRACE_EVENT_FLAG_COPY (static_cast<unsigned char>(1 << 0)) |
| 1033 #define TRACE_EVENT_FLAG_HAS_ID (static_cast<unsigned char>(1 << 1)) | 1033 #define TRACE_EVENT_FLAG_HAS_ID (static_cast<unsigned char>(1 << 1)) |
| 1034 #define TRACE_EVENT_FLAG_MANGLE_ID (static_cast<unsigned char>(1 << 2)) | 1034 #define TRACE_EVENT_FLAG_MANGLE_ID (static_cast<unsigned char>(1 << 2)) |
| 1035 #define TRACE_EVENT_FLAG_SCOPE_OFFSET (static_cast<unsigned char>(1 << 3)) | 1035 #define TRACE_EVENT_FLAG_SCOPE_OFFSET (static_cast<unsigned char>(1 << 3)) |
| 1036 | 1036 |
| 1037 #define TRACE_EVENT_FLAG_SCOPE_MASK (static_cast<unsigned char>( \ | 1037 #define TRACE_EVENT_FLAG_SCOPE_MASK (static_cast<unsigned char>( \ |
| 1038 TRACE_EVENT_FLAG_SCOPE_OFFSET | (TRACE_EVENT_FLAG_SCOPE_OFFSET << 1))) | 1038 TRACE_EVENT_FLAG_SCOPE_OFFSET | (TRACE_EVENT_FLAG_SCOPE_OFFSET << 1))) |
| 1039 | 1039 |
| 1040 #define TRACE_EVENT_FLAG_DONT_REPORT_OVERHEAD \ |
| 1041 (static_cast<unsigned char>(1 << 5)) |
| 1042 |
| 1040 // Type values for identifying types in the TraceValue union. | 1043 // Type values for identifying types in the TraceValue union. |
| 1041 #define TRACE_VALUE_TYPE_BOOL (static_cast<unsigned char>(1)) | 1044 #define TRACE_VALUE_TYPE_BOOL (static_cast<unsigned char>(1)) |
| 1042 #define TRACE_VALUE_TYPE_UINT (static_cast<unsigned char>(2)) | 1045 #define TRACE_VALUE_TYPE_UINT (static_cast<unsigned char>(2)) |
| 1043 #define TRACE_VALUE_TYPE_INT (static_cast<unsigned char>(3)) | 1046 #define TRACE_VALUE_TYPE_INT (static_cast<unsigned char>(3)) |
| 1044 #define TRACE_VALUE_TYPE_DOUBLE (static_cast<unsigned char>(4)) | 1047 #define TRACE_VALUE_TYPE_DOUBLE (static_cast<unsigned char>(4)) |
| 1045 #define TRACE_VALUE_TYPE_POINTER (static_cast<unsigned char>(5)) | 1048 #define TRACE_VALUE_TYPE_POINTER (static_cast<unsigned char>(5)) |
| 1046 #define TRACE_VALUE_TYPE_STRING (static_cast<unsigned char>(6)) | 1049 #define TRACE_VALUE_TYPE_STRING (static_cast<unsigned char>(6)) |
| 1047 #define TRACE_VALUE_TYPE_COPY_STRING (static_cast<unsigned char>(7)) | 1050 #define TRACE_VALUE_TYPE_COPY_STRING (static_cast<unsigned char>(7)) |
| 1048 #define TRACE_VALUE_TYPE_CONVERTABLE (static_cast<unsigned char>(8)) | 1051 #define TRACE_VALUE_TYPE_CONVERTABLE (static_cast<unsigned char>(8)) |
| 1049 | 1052 |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 const char* name_; | 1583 const char* name_; |
| 1581 IDType id_; | 1584 IDType id_; |
| 1582 | 1585 |
| 1583 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); | 1586 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); |
| 1584 }; | 1587 }; |
| 1585 | 1588 |
| 1586 } // namespace debug | 1589 } // namespace debug |
| 1587 } // namespace base | 1590 } // namespace base |
| 1588 | 1591 |
| 1589 #endif /* BASE_DEBUG_TRACE_EVENT_H_ */ | 1592 #endif /* BASE_DEBUG_TRACE_EVENT_H_ */ |
| OLD | NEW |