| 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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 trace_event_flags, ##__VA_ARGS__); \ | 900 trace_event_flags, ##__VA_ARGS__); \ |
| 901 } \ | 901 } \ |
| 902 } while (0) | 902 } while (0) |
| 903 | 903 |
| 904 // Notes regarding the following definitions: | 904 // Notes regarding the following definitions: |
| 905 // New values can be added and propagated to third party libraries, but existing | 905 // New values can be added and propagated to third party libraries, but existing |
| 906 // definitions must never be changed, because third party libraries may use old | 906 // definitions must never be changed, because third party libraries may use old |
| 907 // definitions. | 907 // definitions. |
| 908 | 908 |
| 909 // Phase indicates the nature of an event entry. E.g. part of a begin/end pair. | 909 // Phase indicates the nature of an event entry. E.g. part of a begin/end pair. |
| 910 #define TRACE_EVENT_PHASE_BEGIN ('B') | 910 #define TRACE_EVENT_PHASE_BEGIN ('B') |
| 911 #define TRACE_EVENT_PHASE_END ('E') | 911 #define TRACE_EVENT_PHASE_END ('E') |
| 912 #define TRACE_EVENT_PHASE_INSTANT ('i') | 912 #define TRACE_EVENT_PHASE_INSTANT ('i') |
| 913 #define TRACE_EVENT_PHASE_INSTANT_OLD ('I') // Used by third party libraries. |
| 913 #define TRACE_EVENT_PHASE_ASYNC_BEGIN ('S') | 914 #define TRACE_EVENT_PHASE_ASYNC_BEGIN ('S') |
| 914 #define TRACE_EVENT_PHASE_ASYNC_STEP ('T') | 915 #define TRACE_EVENT_PHASE_ASYNC_STEP ('T') |
| 915 #define TRACE_EVENT_PHASE_ASYNC_END ('F') | 916 #define TRACE_EVENT_PHASE_ASYNC_END ('F') |
| 916 #define TRACE_EVENT_PHASE_FLOW_BEGIN ('s') | 917 #define TRACE_EVENT_PHASE_FLOW_BEGIN ('s') |
| 917 #define TRACE_EVENT_PHASE_FLOW_STEP ('t') | 918 #define TRACE_EVENT_PHASE_FLOW_STEP ('t') |
| 918 #define TRACE_EVENT_PHASE_FLOW_END ('f') | 919 #define TRACE_EVENT_PHASE_FLOW_END ('f') |
| 919 #define TRACE_EVENT_PHASE_METADATA ('M') | 920 #define TRACE_EVENT_PHASE_METADATA ('M') |
| 920 #define TRACE_EVENT_PHASE_COUNTER ('C') | 921 #define TRACE_EVENT_PHASE_COUNTER ('C') |
| 921 #define TRACE_EVENT_PHASE_SAMPLE ('P') | 922 #define TRACE_EVENT_PHASE_SAMPLE ('P') |
| 922 #define TRACE_EVENT_PHASE_CREATE_OBJECT ('N') | 923 #define TRACE_EVENT_PHASE_CREATE_OBJECT ('N') |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1541 const char* name_; | 1542 const char* name_; |
| 1542 IDType id_; | 1543 IDType id_; |
| 1543 | 1544 |
| 1544 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); | 1545 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); |
| 1545 }; | 1546 }; |
| 1546 | 1547 |
| 1547 } // namespace debug | 1548 } // namespace debug |
| 1548 } // namespace base | 1549 } // namespace base |
| 1549 | 1550 |
| 1550 #endif /* BASE_DEBUG_TRACE_EVENT_H_ */ | 1551 #endif /* BASE_DEBUG_TRACE_EVENT_H_ */ |
| OLD | NEW |