Chromium Code Reviews| 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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 724 category_group, name, id, TRACE_EVENT_FLAG_NONE) | 724 category_group, name, id, TRACE_EVENT_FLAG_NONE) |
| 725 #define TRACE_EVENT_NESTABLE_ASYNC_BEGIN1(category_group, name, id, arg1_name, \ | 725 #define TRACE_EVENT_NESTABLE_ASYNC_BEGIN1(category_group, name, id, arg1_name, \ |
| 726 arg1_val) \ | 726 arg1_val) \ |
| 727 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN, \ | 727 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN, \ |
| 728 category_group, name, id, TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val) | 728 category_group, name, id, TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val) |
| 729 #define TRACE_EVENT_NESTABLE_ASYNC_BEGIN2(category_group, name, id, arg1_name, \ | 729 #define TRACE_EVENT_NESTABLE_ASYNC_BEGIN2(category_group, name, id, arg1_name, \ |
| 730 arg1_val, arg2_name, arg2_val) \ | 730 arg1_val, arg2_name, arg2_val) \ |
| 731 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN, \ | 731 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN, \ |
| 732 category_group, name, id, TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val, \ | 732 category_group, name, id, TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val, \ |
| 733 arg2_name, arg2_val) | 733 arg2_name, arg2_val) |
| 734 // Records a single NESTABLE_ASYNC_END event called "name" immediately, with 0, | 734 // Records a single NESTABLE_ASYNC_END event called "name" immediately, with 0 |
| 735 // 1, or 2 associated arguments. If the category is not enabled, then this does | 735 // or 2 associated arguments. If the category is not enabled, then this does |
| 736 // nothing. | 736 // nothing. |
| 737 #define TRACE_EVENT_NESTABLE_ASYNC_END0(category_group, name, id) \ | 737 #define TRACE_EVENT_NESTABLE_ASYNC_END0(category_group, name, id) \ |
| 738 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_END, \ | 738 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_END, \ |
| 739 category_group, name, id, TRACE_EVENT_FLAG_NONE) | 739 category_group, name, id, TRACE_EVENT_FLAG_NONE) |
| 740 #define TRACE_EVENT_NESTABLE_ASYNC_END1(category_group, name, id, arg1_name, \ | |
| 741 arg1_val) \ | |
| 742 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_END, \ | |
| 743 category_group, name, id, TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val) | |
| 744 #define TRACE_EVENT_NESTABLE_ASYNC_END2(category_group, name, id, arg1_name, \ | 740 #define TRACE_EVENT_NESTABLE_ASYNC_END2(category_group, name, id, arg1_name, \ |
|
Dan Beam
2015/06/08 21:10:30
p.s. there's only 1 other use of this
https://code
| |
| 745 arg1_val, arg2_name, arg2_val) \ | 741 arg1_val, arg2_name, arg2_val) \ |
| 746 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_END, \ | 742 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_END, \ |
| 747 category_group, name, id, TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val, \ | 743 category_group, name, id, TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val, \ |
| 748 arg2_name, arg2_val) | 744 arg2_name, arg2_val) |
| 749 | 745 |
| 750 #define TRACE_EVENT_COPY_NESTABLE_ASYNC_BEGIN_WITH_TTS2(category_group, name, \ | 746 #define TRACE_EVENT_COPY_NESTABLE_ASYNC_BEGIN_WITH_TTS2(category_group, name, \ |
| 751 id, arg1_name, arg1_val, arg2_name, arg2_val) \ | 747 id, arg1_name, arg1_val, arg2_name, arg2_val) \ |
| 752 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN, \ | 748 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN, \ |
| 753 category_group, name, id, \ | 749 category_group, name, id, \ |
| 754 TRACE_EVENT_FLAG_ASYNC_TTS | TRACE_EVENT_FLAG_COPY, \ | 750 TRACE_EVENT_FLAG_ASYNC_TTS | TRACE_EVENT_FLAG_COPY, \ |
| (...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1708 const char* name_; | 1704 const char* name_; |
| 1709 IDType id_; | 1705 IDType id_; |
| 1710 | 1706 |
| 1711 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); | 1707 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); |
| 1712 }; | 1708 }; |
| 1713 | 1709 |
| 1714 } // namespace trace_event | 1710 } // namespace trace_event |
| 1715 } // namespace base | 1711 } // namespace base |
| 1716 | 1712 |
| 1717 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ | 1713 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ |
| OLD | NEW |