| 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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 | 935 |
| 936 // Notes regarding the following definitions: | 936 // Notes regarding the following definitions: |
| 937 // New values can be added and propagated to third party libraries, but existing | 937 // New values can be added and propagated to third party libraries, but existing |
| 938 // definitions must never be changed, because third party libraries may use old | 938 // definitions must never be changed, because third party libraries may use old |
| 939 // definitions. | 939 // definitions. |
| 940 | 940 |
| 941 // Phase indicates the nature of an event entry. E.g. part of a begin/end pair. | 941 // Phase indicates the nature of an event entry. E.g. part of a begin/end pair. |
| 942 #define TRACE_EVENT_PHASE_BEGIN ('B') | 942 #define TRACE_EVENT_PHASE_BEGIN ('B') |
| 943 #define TRACE_EVENT_PHASE_END ('E') | 943 #define TRACE_EVENT_PHASE_END ('E') |
| 944 #define TRACE_EVENT_PHASE_COMPLETE ('X') | 944 #define TRACE_EVENT_PHASE_COMPLETE ('X') |
| 945 #define TRACE_EVENT_PHASE_INSTANT ('i') | 945 #define TRACE_EVENT_PHASE_INSTANT ('I') |
| 946 #define TRACE_EVENT_PHASE_ASYNC_BEGIN ('S') | 946 #define TRACE_EVENT_PHASE_ASYNC_BEGIN ('S') |
| 947 #define TRACE_EVENT_PHASE_ASYNC_STEP_INTO ('T') | 947 #define TRACE_EVENT_PHASE_ASYNC_STEP_INTO ('T') |
| 948 #define TRACE_EVENT_PHASE_ASYNC_STEP_PAST ('p') | 948 #define TRACE_EVENT_PHASE_ASYNC_STEP_PAST ('p') |
| 949 #define TRACE_EVENT_PHASE_ASYNC_END ('F') | 949 #define TRACE_EVENT_PHASE_ASYNC_END ('F') |
| 950 #define TRACE_EVENT_PHASE_FLOW_BEGIN ('s') | 950 #define TRACE_EVENT_PHASE_FLOW_BEGIN ('s') |
| 951 #define TRACE_EVENT_PHASE_FLOW_STEP ('t') | 951 #define TRACE_EVENT_PHASE_FLOW_STEP ('t') |
| 952 #define TRACE_EVENT_PHASE_FLOW_END ('f') | 952 #define TRACE_EVENT_PHASE_FLOW_END ('f') |
| 953 #define TRACE_EVENT_PHASE_METADATA ('M') | 953 #define TRACE_EVENT_PHASE_METADATA ('M') |
| 954 #define TRACE_EVENT_PHASE_COUNTER ('C') | 954 #define TRACE_EVENT_PHASE_COUNTER ('C') |
| 955 #define TRACE_EVENT_PHASE_SAMPLE ('P') | 955 #define TRACE_EVENT_PHASE_SAMPLE ('P') |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1510 const char* name_; | 1510 const char* name_; |
| 1511 IDType id_; | 1511 IDType id_; |
| 1512 | 1512 |
| 1513 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); | 1513 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); |
| 1514 }; | 1514 }; |
| 1515 | 1515 |
| 1516 } // namespace debug | 1516 } // namespace debug |
| 1517 } // namespace base | 1517 } // namespace base |
| 1518 | 1518 |
| 1519 #endif /* BASE_DEBUG_TRACE_EVENT_H_ */ | 1519 #endif /* BASE_DEBUG_TRACE_EVENT_H_ */ |
| OLD | NEW |