1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: execution_context.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_execution_5fcontext_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_execution_5fcontext_2eproto
6
7 #include <limits>
8 #include <string>
9
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3021000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/metadata_lite.h>
28 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
29 #include <google/protobuf/extension_set.h> // IWYU pragma: export
30 #include <google/protobuf/generated_enum_util.h>
31 // @@protoc_insertion_point(includes)
32 #include <google/protobuf/port_def.inc>
33 #define PROTOBUF_INTERNAL_EXPORT_execution_5fcontext_2eproto
34 PROTOBUF_NAMESPACE_OPEN
35 namespace internal {
36 class AnyMetadata;
37 } // namespace internal
38 PROTOBUF_NAMESPACE_CLOSE
39
40 // Internal implementation detail -- do not use these members.
41 struct TableStruct_execution_5fcontext_2eproto {
42 static const uint32_t offsets[];
43 };
44 PROTOBUF_NAMESPACE_OPEN
45 PROTOBUF_NAMESPACE_CLOSE
46 namespace metrics {
47
48 enum Process : int {
49 UNKNOWN_PROCESS = 0,
50 BROWSER_PROCESS = 1,
51 RENDERER_PROCESS = 2,
52 GPU_PROCESS = 3,
53 UTILITY_PROCESS = 4,
54 ZYGOTE_PROCESS = 5,
55 SANDBOX_HELPER_PROCESS = 6,
56 PPAPI_PLUGIN_PROCESS = 7,
57 PPAPI_BROKER_PROCESS = 8,
58 NETWORK_SERVICE_PROCESS = 10,
59 OTHER_PROCESS = 9
60 };
61 bool Process_IsValid(int value);
62 constexpr Process Process_MIN = UNKNOWN_PROCESS;
63 constexpr Process Process_MAX = NETWORK_SERVICE_PROCESS;
64 constexpr int Process_ARRAYSIZE = Process_MAX + 1;
65
66 const std::string& Process_Name(Process value);
67 template<typename T>
Process_Name(T enum_t_value)68 inline const std::string& Process_Name(T enum_t_value) {
69 static_assert(::std::is_same<T, Process>::value ||
70 ::std::is_integral<T>::value,
71 "Incorrect type passed to function Process_Name.");
72 return Process_Name(static_cast<Process>(enum_t_value));
73 }
74 bool Process_Parse(
75 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Process* value);
76 enum Thread : int {
77 UNKNOWN_THREAD = 0,
78 MAIN_THREAD = 1,
79 FILE_THREAD = 2,
80 FILE_USER_BLOCKING_THREAD = 3,
81 PROCESS_LAUNCHER_THREAD = 4,
82 CACHE_THREAD = 5,
83 IO_THREAD = 6,
84 DB_THREAD = 7,
85 GPU_MAIN_THREAD = 8,
86 RENDER_THREAD = 9,
87 UTILITY_THREAD = 10,
88 COMPOSITOR_THREAD = 11,
89 SCHEDULER_WORKER_THREAD = 13,
90 COMPOSITOR_TILE_WORKER_THREAD = 14,
91 SERVICE_WORKER_THREAD = 15,
92 DEDICATED_WORKER_THREAD = 18,
93 THREAD_POOL_THREAD = 16,
94 GPU_MEMORY_THREAD = 17,
95 MEMORY_INFRA_THREAD = 19,
96 MEDIA_THREAD = 20,
97 WEBRTC_THREAD = 21,
98 DRM_THREAD = 22,
99 AUDIO_DEVICE_THREAD = 23,
100 AUDIO_THREAD = 24,
101 DAV1D_WORKER_THREAD = 25,
102 STACK_SAMPLING_THREAD = 26,
103 VIDEO_FRAME_COMPOSITOR_THREAD = 27,
104 OTHER_THREAD = 12
105 };
106 bool Thread_IsValid(int value);
107 constexpr Thread Thread_MIN = UNKNOWN_THREAD;
108 constexpr Thread Thread_MAX = VIDEO_FRAME_COMPOSITOR_THREAD;
109 constexpr int Thread_ARRAYSIZE = Thread_MAX + 1;
110
111 const std::string& Thread_Name(Thread value);
112 template<typename T>
Thread_Name(T enum_t_value)113 inline const std::string& Thread_Name(T enum_t_value) {
114 static_assert(::std::is_same<T, Thread>::value ||
115 ::std::is_integral<T>::value,
116 "Incorrect type passed to function Thread_Name.");
117 return Thread_Name(static_cast<Thread>(enum_t_value));
118 }
119 bool Thread_Parse(
120 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Thread* value);
121 enum ProcessPhase : int {
122 MAIN_LOOP_START = 0,
123 MAIN_NAVIGATION_START = 1,
124 MAIN_NAVIGATION_FINISHED = 2,
125 FIRST_NONEMPTY_PAINT = 3,
126 SHUTDOWN_START = 4
127 };
128 bool ProcessPhase_IsValid(int value);
129 constexpr ProcessPhase ProcessPhase_MIN = MAIN_LOOP_START;
130 constexpr ProcessPhase ProcessPhase_MAX = SHUTDOWN_START;
131 constexpr int ProcessPhase_ARRAYSIZE = ProcessPhase_MAX + 1;
132
133 const std::string& ProcessPhase_Name(ProcessPhase value);
134 template<typename T>
ProcessPhase_Name(T enum_t_value)135 inline const std::string& ProcessPhase_Name(T enum_t_value) {
136 static_assert(::std::is_same<T, ProcessPhase>::value ||
137 ::std::is_integral<T>::value,
138 "Incorrect type passed to function ProcessPhase_Name.");
139 return ProcessPhase_Name(static_cast<ProcessPhase>(enum_t_value));
140 }
141 bool ProcessPhase_Parse(
142 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProcessPhase* value);
143 // ===================================================================
144
145
146 // ===================================================================
147
148
149 // ===================================================================
150
151 #ifdef __GNUC__
152 #pragma GCC diagnostic push
153 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
154 #endif // __GNUC__
155 #ifdef __GNUC__
156 #pragma GCC diagnostic pop
157 #endif // __GNUC__
158
159 // @@protoc_insertion_point(namespace_scope)
160
161 } // namespace metrics
162
163 PROTOBUF_NAMESPACE_OPEN
164
165 template <> struct is_proto_enum< ::metrics::Process> : ::std::true_type {};
166 template <> struct is_proto_enum< ::metrics::Thread> : ::std::true_type {};
167 template <> struct is_proto_enum< ::metrics::ProcessPhase> : ::std::true_type {};
168
169 PROTOBUF_NAMESPACE_CLOSE
170
171 // @@protoc_insertion_point(global_scope)
172
173 #include <google/protobuf/port_undef.inc>
174 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_execution_5fcontext_2eproto
175