OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, \ | 739 category_group, name, id, \ |
740 TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val) | 740 TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val) |
741 #define TRACE_EVENT_NESTABLE_ASYNC_END2(category_group, name, id, arg1_name, \ | 741 #define TRACE_EVENT_NESTABLE_ASYNC_END2(category_group, name, id, arg1_name, \ |
742 arg1_val, arg2_name, arg2_val) \ | 742 arg1_val, arg2_name, arg2_val) \ |
743 INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ | 743 INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ |
744 TRACE_EVENT_PHASE_NESTABLE_ASYNC_END, category_group, name, id, \ | 744 TRACE_EVENT_PHASE_NESTABLE_ASYNC_END, category_group, name, id, \ |
745 TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val, arg2_name, arg2_val) | 745 TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val, arg2_name, arg2_val) |
746 | 746 |
747 // Records a single NESTABLE_ASYNC_INSTANT event called "name" immediately, | 747 // Records a single NESTABLE_ASYNC_INSTANT event called "name" immediately, |
748 // with one associated argument. If the category is not enabled, then this | 748 // with none, one or two associated argument. If the category is not enabled, |
749 // does nothing. | 749 // then this does nothing. |
| 750 #define TRACE_EVENT_NESTABLE_ASYNC_INSTANT0(category_group, name, id) \ |
| 751 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_INSTANT, \ |
| 752 category_group, name, id, \ |
| 753 TRACE_EVENT_FLAG_NONE) |
750 #define TRACE_EVENT_NESTABLE_ASYNC_INSTANT1(category_group, name, id, \ | 754 #define TRACE_EVENT_NESTABLE_ASYNC_INSTANT1(category_group, name, id, \ |
751 arg1_name, arg1_val) \ | 755 arg1_name, arg1_val) \ |
752 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_INSTANT, \ | 756 INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_NESTABLE_ASYNC_INSTANT, \ |
753 category_group, name, id, \ | 757 category_group, name, id, \ |
754 TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val) | 758 TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val) |
755 // Records a single NESTABLE_ASYNC_INSTANT event called "name" immediately, | |
756 // with 2 associated arguments. If the category is not enabled, then this | |
757 // does nothing. | |
758 #define TRACE_EVENT_NESTABLE_ASYNC_INSTANT2( \ | 759 #define TRACE_EVENT_NESTABLE_ASYNC_INSTANT2( \ |
759 category_group, name, id, arg1_name, arg1_val, arg2_name, arg2_val) \ | 760 category_group, name, id, arg1_name, arg1_val, arg2_name, arg2_val) \ |
760 INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ | 761 INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ |
761 TRACE_EVENT_PHASE_NESTABLE_ASYNC_INSTANT, category_group, name, id, \ | 762 TRACE_EVENT_PHASE_NESTABLE_ASYNC_INSTANT, category_group, name, id, \ |
762 TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val, arg2_name, arg2_val) | 763 TRACE_EVENT_FLAG_NONE, arg1_name, arg1_val, arg2_name, arg2_val) |
763 | 764 |
764 #define TRACE_EVENT_COPY_NESTABLE_ASYNC_BEGIN_WITH_TTS2( \ | 765 #define TRACE_EVENT_COPY_NESTABLE_ASYNC_BEGIN_WITH_TTS2( \ |
765 category_group, name, id, arg1_name, arg1_val, arg2_name, arg2_val) \ | 766 category_group, name, id, arg1_name, arg1_val, arg2_name, arg2_val) \ |
766 INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ | 767 INTERNAL_TRACE_EVENT_ADD_WITH_ID( \ |
767 TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN, category_group, name, id, \ | 768 TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN, category_group, name, id, \ |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 | 1030 |
1030 // Enum reflecting the scope of an INSTANT event. Must fit within | 1031 // Enum reflecting the scope of an INSTANT event. Must fit within |
1031 // TRACE_EVENT_FLAG_SCOPE_MASK. | 1032 // TRACE_EVENT_FLAG_SCOPE_MASK. |
1032 #define TRACE_EVENT_SCOPE_GLOBAL (static_cast<unsigned char>(0 << 3)) | 1033 #define TRACE_EVENT_SCOPE_GLOBAL (static_cast<unsigned char>(0 << 3)) |
1033 #define TRACE_EVENT_SCOPE_PROCESS (static_cast<unsigned char>(1 << 3)) | 1034 #define TRACE_EVENT_SCOPE_PROCESS (static_cast<unsigned char>(1 << 3)) |
1034 #define TRACE_EVENT_SCOPE_THREAD (static_cast<unsigned char>(2 << 3)) | 1035 #define TRACE_EVENT_SCOPE_THREAD (static_cast<unsigned char>(2 << 3)) |
1035 | 1036 |
1036 #define TRACE_EVENT_SCOPE_NAME_GLOBAL ('g') | 1037 #define TRACE_EVENT_SCOPE_NAME_GLOBAL ('g') |
1037 #define TRACE_EVENT_SCOPE_NAME_PROCESS ('p') | 1038 #define TRACE_EVENT_SCOPE_NAME_PROCESS ('p') |
1038 #define TRACE_EVENT_SCOPE_NAME_THREAD ('t') | 1039 #define TRACE_EVENT_SCOPE_NAME_THREAD ('t') |
OLD | NEW |