1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: execution_context.proto
3
4 #include "execution_context.pb.h"
5
6 #include <algorithm>
7
8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 // @@protoc_insertion_point(includes)
12 #include <google/protobuf/port_def.inc>
13
14 PROTOBUF_PRAGMA_INIT_SEG
15
16 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
17 namespace _pbi = _pb::internal;
18
19 namespace metrics {
20 } // namespace metrics
21 namespace metrics {
Process_IsValid(int value)22 bool Process_IsValid(int value) {
23 switch (value) {
24 case 0:
25 case 1:
26 case 2:
27 case 3:
28 case 4:
29 case 5:
30 case 6:
31 case 7:
32 case 8:
33 case 9:
34 case 10:
35 return true;
36 default:
37 return false;
38 }
39 }
40
41 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> Process_strings[11] = {};
42
43 static const char Process_names[] =
44 "BROWSER_PROCESS"
45 "GPU_PROCESS"
46 "NETWORK_SERVICE_PROCESS"
47 "OTHER_PROCESS"
48 "PPAPI_BROKER_PROCESS"
49 "PPAPI_PLUGIN_PROCESS"
50 "RENDERER_PROCESS"
51 "SANDBOX_HELPER_PROCESS"
52 "UNKNOWN_PROCESS"
53 "UTILITY_PROCESS"
54 "ZYGOTE_PROCESS";
55
56 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Process_entries[] = {
57 { {Process_names + 0, 15}, 1 },
58 { {Process_names + 15, 11}, 3 },
59 { {Process_names + 26, 23}, 10 },
60 { {Process_names + 49, 13}, 9 },
61 { {Process_names + 62, 20}, 8 },
62 { {Process_names + 82, 20}, 7 },
63 { {Process_names + 102, 16}, 2 },
64 { {Process_names + 118, 22}, 6 },
65 { {Process_names + 140, 15}, 0 },
66 { {Process_names + 155, 15}, 4 },
67 { {Process_names + 170, 14}, 5 },
68 };
69
70 static const int Process_entries_by_number[] = {
71 8, // 0 -> UNKNOWN_PROCESS
72 0, // 1 -> BROWSER_PROCESS
73 6, // 2 -> RENDERER_PROCESS
74 1, // 3 -> GPU_PROCESS
75 9, // 4 -> UTILITY_PROCESS
76 10, // 5 -> ZYGOTE_PROCESS
77 7, // 6 -> SANDBOX_HELPER_PROCESS
78 5, // 7 -> PPAPI_PLUGIN_PROCESS
79 4, // 8 -> PPAPI_BROKER_PROCESS
80 3, // 9 -> OTHER_PROCESS
81 2, // 10 -> NETWORK_SERVICE_PROCESS
82 };
83
Process_Name(Process value)84 const std::string& Process_Name(
85 Process value) {
86 static const bool dummy =
87 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
88 Process_entries,
89 Process_entries_by_number,
90 11, Process_strings);
91 (void) dummy;
92 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
93 Process_entries,
94 Process_entries_by_number,
95 11, value);
96 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
97 Process_strings[idx].get();
98 }
Process_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Process * value)99 bool Process_Parse(
100 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Process* value) {
101 int int_value;
102 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
103 Process_entries, 11, name, &int_value);
104 if (success) {
105 *value = static_cast<Process>(int_value);
106 }
107 return success;
108 }
Thread_IsValid(int value)109 bool Thread_IsValid(int value) {
110 switch (value) {
111 case 0:
112 case 1:
113 case 2:
114 case 3:
115 case 4:
116 case 5:
117 case 6:
118 case 7:
119 case 8:
120 case 9:
121 case 10:
122 case 11:
123 case 12:
124 case 13:
125 case 14:
126 case 15:
127 case 16:
128 case 17:
129 case 18:
130 case 19:
131 case 20:
132 case 21:
133 case 22:
134 case 23:
135 case 24:
136 case 25:
137 case 26:
138 case 27:
139 return true;
140 default:
141 return false;
142 }
143 }
144
145 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> Thread_strings[28] = {};
146
147 static const char Thread_names[] =
148 "AUDIO_DEVICE_THREAD"
149 "AUDIO_THREAD"
150 "CACHE_THREAD"
151 "COMPOSITOR_THREAD"
152 "COMPOSITOR_TILE_WORKER_THREAD"
153 "DAV1D_WORKER_THREAD"
154 "DB_THREAD"
155 "DEDICATED_WORKER_THREAD"
156 "DRM_THREAD"
157 "FILE_THREAD"
158 "FILE_USER_BLOCKING_THREAD"
159 "GPU_MAIN_THREAD"
160 "GPU_MEMORY_THREAD"
161 "IO_THREAD"
162 "MAIN_THREAD"
163 "MEDIA_THREAD"
164 "MEMORY_INFRA_THREAD"
165 "OTHER_THREAD"
166 "PROCESS_LAUNCHER_THREAD"
167 "RENDER_THREAD"
168 "SCHEDULER_WORKER_THREAD"
169 "SERVICE_WORKER_THREAD"
170 "STACK_SAMPLING_THREAD"
171 "THREAD_POOL_THREAD"
172 "UNKNOWN_THREAD"
173 "UTILITY_THREAD"
174 "VIDEO_FRAME_COMPOSITOR_THREAD"
175 "WEBRTC_THREAD";
176
177 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Thread_entries[] = {
178 { {Thread_names + 0, 19}, 23 },
179 { {Thread_names + 19, 12}, 24 },
180 { {Thread_names + 31, 12}, 5 },
181 { {Thread_names + 43, 17}, 11 },
182 { {Thread_names + 60, 29}, 14 },
183 { {Thread_names + 89, 19}, 25 },
184 { {Thread_names + 108, 9}, 7 },
185 { {Thread_names + 117, 23}, 18 },
186 { {Thread_names + 140, 10}, 22 },
187 { {Thread_names + 150, 11}, 2 },
188 { {Thread_names + 161, 25}, 3 },
189 { {Thread_names + 186, 15}, 8 },
190 { {Thread_names + 201, 17}, 17 },
191 { {Thread_names + 218, 9}, 6 },
192 { {Thread_names + 227, 11}, 1 },
193 { {Thread_names + 238, 12}, 20 },
194 { {Thread_names + 250, 19}, 19 },
195 { {Thread_names + 269, 12}, 12 },
196 { {Thread_names + 281, 23}, 4 },
197 { {Thread_names + 304, 13}, 9 },
198 { {Thread_names + 317, 23}, 13 },
199 { {Thread_names + 340, 21}, 15 },
200 { {Thread_names + 361, 21}, 26 },
201 { {Thread_names + 382, 18}, 16 },
202 { {Thread_names + 400, 14}, 0 },
203 { {Thread_names + 414, 14}, 10 },
204 { {Thread_names + 428, 29}, 27 },
205 { {Thread_names + 457, 13}, 21 },
206 };
207
208 static const int Thread_entries_by_number[] = {
209 24, // 0 -> UNKNOWN_THREAD
210 14, // 1 -> MAIN_THREAD
211 9, // 2 -> FILE_THREAD
212 10, // 3 -> FILE_USER_BLOCKING_THREAD
213 18, // 4 -> PROCESS_LAUNCHER_THREAD
214 2, // 5 -> CACHE_THREAD
215 13, // 6 -> IO_THREAD
216 6, // 7 -> DB_THREAD
217 11, // 8 -> GPU_MAIN_THREAD
218 19, // 9 -> RENDER_THREAD
219 25, // 10 -> UTILITY_THREAD
220 3, // 11 -> COMPOSITOR_THREAD
221 17, // 12 -> OTHER_THREAD
222 20, // 13 -> SCHEDULER_WORKER_THREAD
223 4, // 14 -> COMPOSITOR_TILE_WORKER_THREAD
224 21, // 15 -> SERVICE_WORKER_THREAD
225 23, // 16 -> THREAD_POOL_THREAD
226 12, // 17 -> GPU_MEMORY_THREAD
227 7, // 18 -> DEDICATED_WORKER_THREAD
228 16, // 19 -> MEMORY_INFRA_THREAD
229 15, // 20 -> MEDIA_THREAD
230 27, // 21 -> WEBRTC_THREAD
231 8, // 22 -> DRM_THREAD
232 0, // 23 -> AUDIO_DEVICE_THREAD
233 1, // 24 -> AUDIO_THREAD
234 5, // 25 -> DAV1D_WORKER_THREAD
235 22, // 26 -> STACK_SAMPLING_THREAD
236 26, // 27 -> VIDEO_FRAME_COMPOSITOR_THREAD
237 };
238
Thread_Name(Thread value)239 const std::string& Thread_Name(
240 Thread value) {
241 static const bool dummy =
242 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
243 Thread_entries,
244 Thread_entries_by_number,
245 28, Thread_strings);
246 (void) dummy;
247 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
248 Thread_entries,
249 Thread_entries_by_number,
250 28, value);
251 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
252 Thread_strings[idx].get();
253 }
Thread_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Thread * value)254 bool Thread_Parse(
255 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Thread* value) {
256 int int_value;
257 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
258 Thread_entries, 28, name, &int_value);
259 if (success) {
260 *value = static_cast<Thread>(int_value);
261 }
262 return success;
263 }
ProcessPhase_IsValid(int value)264 bool ProcessPhase_IsValid(int value) {
265 switch (value) {
266 case 0:
267 case 1:
268 case 2:
269 case 3:
270 case 4:
271 return true;
272 default:
273 return false;
274 }
275 }
276
277 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ProcessPhase_strings[5] = {};
278
279 static const char ProcessPhase_names[] =
280 "FIRST_NONEMPTY_PAINT"
281 "MAIN_LOOP_START"
282 "MAIN_NAVIGATION_FINISHED"
283 "MAIN_NAVIGATION_START"
284 "SHUTDOWN_START";
285
286 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ProcessPhase_entries[] = {
287 { {ProcessPhase_names + 0, 20}, 3 },
288 { {ProcessPhase_names + 20, 15}, 0 },
289 { {ProcessPhase_names + 35, 24}, 2 },
290 { {ProcessPhase_names + 59, 21}, 1 },
291 { {ProcessPhase_names + 80, 14}, 4 },
292 };
293
294 static const int ProcessPhase_entries_by_number[] = {
295 1, // 0 -> MAIN_LOOP_START
296 3, // 1 -> MAIN_NAVIGATION_START
297 2, // 2 -> MAIN_NAVIGATION_FINISHED
298 0, // 3 -> FIRST_NONEMPTY_PAINT
299 4, // 4 -> SHUTDOWN_START
300 };
301
ProcessPhase_Name(ProcessPhase value)302 const std::string& ProcessPhase_Name(
303 ProcessPhase value) {
304 static const bool dummy =
305 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
306 ProcessPhase_entries,
307 ProcessPhase_entries_by_number,
308 5, ProcessPhase_strings);
309 (void) dummy;
310 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
311 ProcessPhase_entries,
312 ProcessPhase_entries_by_number,
313 5, value);
314 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
315 ProcessPhase_strings[idx].get();
316 }
ProcessPhase_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,ProcessPhase * value)317 bool ProcessPhase_Parse(
318 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProcessPhase* value) {
319 int int_value;
320 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
321 ProcessPhase_entries, 5, name, &int_value);
322 if (success) {
323 *value = static_cast<ProcessPhase>(int_value);
324 }
325 return success;
326 }
327
328 // @@protoc_insertion_point(namespace_scope)
329 } // namespace metrics
330 PROTOBUF_NAMESPACE_OPEN
331 PROTOBUF_NAMESPACE_CLOSE
332
333 // @@protoc_insertion_point(global_scope)
334 #include <google/protobuf/port_undef.inc>
335