stats_data.cc
Go to the documentation of this file.
1 /*
2  * Copyright 2017 gRPC authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /*
18  * Automatically generated by tools/codegen/core/gen_stats_data.py
19  */
20 
22 
24 
25 #include <inttypes.h>
26 
29 
31  "client_calls_created",
32  "server_calls_created",
33  "cqs_created",
34  "client_channels_created",
35  "client_subchannels_created",
36  "server_channels_created",
37  "syscall_poll",
38  "syscall_wait",
39  "pollset_kick",
40  "pollset_kicked_without_poller",
41  "pollset_kicked_again",
42  "pollset_kick_wakeup_fd",
43  "pollset_kick_wakeup_cv",
44  "pollset_kick_own_thread",
45  "histogram_slow_lookups",
46  "syscall_write",
47  "syscall_read",
48  "tcp_backup_pollers_created",
49  "tcp_backup_poller_polls",
50  "http2_op_batches",
51  "http2_op_cancel",
52  "http2_op_send_initial_metadata",
53  "http2_op_send_message",
54  "http2_op_send_trailing_metadata",
55  "http2_op_recv_initial_metadata",
56  "http2_op_recv_message",
57  "http2_op_recv_trailing_metadata",
58  "http2_settings_writes",
59  "http2_pings_sent",
60  "http2_writes_begun",
61  "http2_writes_offloaded",
62  "http2_writes_continued",
63  "http2_partial_writes",
64  "http2_initiate_write_due_to_initial_write",
65  "http2_initiate_write_due_to_start_new_stream",
66  "http2_initiate_write_due_to_send_message",
67  "http2_initiate_write_due_to_send_initial_metadata",
68  "http2_initiate_write_due_to_send_trailing_metadata",
69  "http2_initiate_write_due_to_retry_send_ping",
70  "http2_initiate_write_due_to_continue_pings",
71  "http2_initiate_write_due_to_goaway_sent",
72  "http2_initiate_write_due_to_rst_stream",
73  "http2_initiate_write_due_to_close_from_api",
74  "http2_initiate_write_due_to_stream_flow_control",
75  "http2_initiate_write_due_to_transport_flow_control",
76  "http2_initiate_write_due_to_send_settings",
77  "http2_initiate_write_due_to_settings_ack",
78  "http2_initiate_write_due_to_bdp_estimator_ping",
79  "http2_initiate_write_due_to_flow_control_unstalled_by_setting",
80  "http2_initiate_write_due_to_flow_control_unstalled_by_update",
81  "http2_initiate_write_due_to_application_ping",
82  "http2_initiate_write_due_to_keepalive_ping",
83  "http2_initiate_write_due_to_transport_flow_control_unstalled",
84  "http2_initiate_write_due_to_ping_response",
85  "http2_initiate_write_due_to_force_rst_stream",
86  "http2_spurious_writes_begun",
87  "hpack_recv_indexed",
88  "hpack_recv_lithdr_incidx",
89  "hpack_recv_lithdr_incidx_v",
90  "hpack_recv_lithdr_notidx",
91  "hpack_recv_lithdr_notidx_v",
92  "hpack_recv_lithdr_nvridx",
93  "hpack_recv_lithdr_nvridx_v",
94  "hpack_recv_uncompressed",
95  "hpack_recv_huffman",
96  "hpack_recv_binary",
97  "hpack_recv_binary_base64",
98  "hpack_send_indexed",
99  "hpack_send_lithdr_incidx",
100  "hpack_send_lithdr_incidx_v",
101  "hpack_send_lithdr_notidx",
102  "hpack_send_lithdr_notidx_v",
103  "hpack_send_lithdr_nvridx",
104  "hpack_send_lithdr_nvridx_v",
105  "hpack_send_uncompressed",
106  "hpack_send_huffman",
107  "hpack_send_binary",
108  "hpack_send_binary_base64",
109  "combiner_locks_initiated",
110  "combiner_locks_scheduled_items",
111  "combiner_locks_scheduled_final_items",
112  "combiner_locks_offloaded",
113  "call_combiner_locks_initiated",
114  "call_combiner_locks_scheduled_items",
115  "call_combiner_set_notify_on_cancel",
116  "call_combiner_cancelled",
117  "executor_scheduled_short_items",
118  "executor_scheduled_long_items",
119  "executor_scheduled_to_self",
120  "executor_wakeup_initiated",
121  "executor_queue_drained",
122  "executor_push_retries",
123  "server_requested_calls",
124  "server_slowpath_requests_queued",
125  "cq_ev_queue_trylock_failures",
126  "cq_ev_queue_trylock_successes",
127  "cq_ev_queue_transient_pop_failures",
128 };
130  "Number of client side calls created by this process",
131  "Number of server side calls created by this process",
132  "Number of completion queues created",
133  "Number of client channels created",
134  "Number of client subchannels created",
135  "Number of server channels created",
136  "Number of polling syscalls (epoll_wait, poll, etc) made by this process",
137  "Number of sleeping syscalls made by this process",
138  "How many polling wakeups were performed by the process (only valid for "
139  "epoll1 right now)",
140  "How many times was a polling wakeup requested without an active poller "
141  "(only valid for epoll1 right now)",
142  "How many times was the same polling worker awoken repeatedly before "
143  "waking up (only valid for epoll1 right now)",
144  "How many times was an eventfd used as the wakeup vector for a polling "
145  "wakeup (only valid for epoll1 right now)",
146  "How many times was a condition variable used as the wakeup vector for a "
147  "polling wakeup (only valid for epoll1 right now)",
148  "How many times could a polling wakeup be satisfied by keeping the waking "
149  "thread awake? (only valid for epoll1 right now)",
150  "Number of times histogram increments went through the slow (binary "
151  "search) path",
152  "Number of write syscalls (or equivalent - eg sendmsg) made by this "
153  "process",
154  "Number of read syscalls (or equivalent - eg recvmsg) made by this process",
155  "Number of times a backup poller has been created (this can be expensive)",
156  "Number of polls performed on the backup poller",
157  "Number of batches received by HTTP2 transport",
158  "Number of cancelations received by HTTP2 transport",
159  "Number of batches containing send initial metadata",
160  "Number of batches containing send message",
161  "Number of batches containing send trailing metadata",
162  "Number of batches containing receive initial metadata",
163  "Number of batches containing receive message",
164  "Number of batches containing receive trailing metadata",
165  "Number of settings frames sent",
166  "Number of HTTP2 pings sent by process",
167  "Number of HTTP2 writes initiated",
168  "Number of HTTP2 writes offloaded to the executor from application threads",
169  "Number of HTTP2 writes that finished seeing more data needed to be "
170  "written",
171  "Number of HTTP2 writes that were made knowing there was still more data "
172  "to be written (we cap maximum write size to syscall_write)",
173  "Number of HTTP2 writes initiated due to 'initial_write'",
174  "Number of HTTP2 writes initiated due to 'start_new_stream'",
175  "Number of HTTP2 writes initiated due to 'send_message'",
176  "Number of HTTP2 writes initiated due to 'send_initial_metadata'",
177  "Number of HTTP2 writes initiated due to 'send_trailing_metadata'",
178  "Number of HTTP2 writes initiated due to 'retry_send_ping'",
179  "Number of HTTP2 writes initiated due to 'continue_pings'",
180  "Number of HTTP2 writes initiated due to 'goaway_sent'",
181  "Number of HTTP2 writes initiated due to 'rst_stream'",
182  "Number of HTTP2 writes initiated due to 'close_from_api'",
183  "Number of HTTP2 writes initiated due to 'stream_flow_control'",
184  "Number of HTTP2 writes initiated due to 'transport_flow_control'",
185  "Number of HTTP2 writes initiated due to 'send_settings'",
186  "Number of HTTP2 writes initiated due to 'settings_ack'",
187  "Number of HTTP2 writes initiated due to 'bdp_estimator_ping'",
188  "Number of HTTP2 writes initiated due to "
189  "'flow_control_unstalled_by_setting'",
190  "Number of HTTP2 writes initiated due to "
191  "'flow_control_unstalled_by_update'",
192  "Number of HTTP2 writes initiated due to 'application_ping'",
193  "Number of HTTP2 writes initiated due to 'keepalive_ping'",
194  "Number of HTTP2 writes initiated due to "
195  "'transport_flow_control_unstalled'",
196  "Number of HTTP2 writes initiated due to 'ping_response'",
197  "Number of HTTP2 writes initiated due to 'force_rst_stream'",
198  "Number of HTTP2 writes initiated with nothing to write",
199  "Number of HPACK indexed fields received",
200  "Number of HPACK literal headers received with incremental indexing",
201  "Number of HPACK literal headers received with incremental indexing and "
202  "literal keys",
203  "Number of HPACK literal headers received with no indexing",
204  "Number of HPACK literal headers received with no indexing and literal "
205  "keys",
206  "Number of HPACK literal headers received with never-indexing",
207  "Number of HPACK literal headers received with never-indexing and literal "
208  "keys",
209  "Number of uncompressed strings received in metadata",
210  "Number of huffman encoded strings received in metadata",
211  "Number of binary strings received in metadata",
212  "Number of binary strings received encoded in base64 in metadata",
213  "Number of HPACK indexed fields sent",
214  "Number of HPACK literal headers sent with incremental indexing",
215  "Number of HPACK literal headers sent with incremental indexing and "
216  "literal keys",
217  "Number of HPACK literal headers sent with no indexing",
218  "Number of HPACK literal headers sent with no indexing and literal keys",
219  "Number of HPACK literal headers sent with never-indexing",
220  "Number of HPACK literal headers sent with never-indexing and literal keys",
221  "Number of uncompressed strings sent in metadata",
222  "Number of huffman encoded strings sent in metadata",
223  "Number of binary strings received in metadata",
224  "Number of binary strings received encoded in base64 in metadata",
225  "Number of combiner lock entries by process (first items queued to a "
226  "combiner)",
227  "Number of items scheduled against combiner locks",
228  "Number of final items scheduled against combiner locks",
229  "Number of combiner locks offloaded to different threads",
230  "Number of call combiner lock entries by process (first items queued to a "
231  "call combiner)",
232  "Number of items scheduled against call combiner locks",
233  "Number of times a cancellation callback was set on a call combiner",
234  "Number of times a call combiner was cancelled",
235  "Number of finite runtime closures scheduled against the executor (gRPC "
236  "thread pool)",
237  "Number of potentially infinite runtime closures scheduled against the "
238  "executor (gRPC thread pool)",
239  "Number of closures scheduled by the executor to the executor",
240  "Number of thread wakeups initiated within the executor",
241  "Number of times an executor queue was drained",
242  "Number of times we raced and were forced to retry pushing a closure to "
243  "the executor",
244  "How many calls were requested (not necessarily received) by the server",
245  "How many times was the server slow path taken (indicates too few "
246  "outstanding requests)",
247  "Number of lock (trylock) acquisition failures on completion queue event "
248  "queue. High value here indicates high contention on completion queues",
249  "Number of lock (trylock) acquisition successes on completion queue event "
250  "queue.",
251  "Number of times NULL was popped out of completion queue's event queue "
252  "even though the event queue was not empty",
253 };
255  "call_initial_size",
256  "poll_events_returned",
257  "tcp_write_size",
258  "tcp_write_iov_size",
259  "tcp_read_size",
260  "tcp_read_offer",
261  "tcp_read_offer_iov_size",
262  "http2_send_message_size",
263  "http2_send_initial_metadata_per_write",
264  "http2_send_message_per_write",
265  "http2_send_trailing_metadata_per_write",
266  "http2_send_flowctl_per_write",
267  "server_cqs_checked",
268 };
270  "Initial size of the grpc_call arena created at call start",
271  "How many events are called for each syscall_poll",
272  "Number of bytes offered to each syscall_write",
273  "Number of byte segments offered to each syscall_write",
274  "Number of bytes received by each syscall_read",
275  "Number of bytes offered to each syscall_read",
276  "Number of byte segments offered to each syscall_read",
277  "Size of messages received by HTTP2 transport",
278  "Number of streams initiated written per TCP write",
279  "Number of streams whose payload was written per TCP write",
280  "Number of streams terminated per TCP write",
281  "Number of flow control updates written per TCP write",
282  "How many completion queues were checked looking for a CQ that had "
283  "requested the incoming call",
284 };
285 const int grpc_stats_table_0[65] = {
286  0, 1, 2, 3, 4, 5, 7, 9, 11, 14,
287  17, 21, 26, 32, 39, 47, 57, 68, 82, 98,
288  117, 140, 167, 199, 238, 284, 339, 404, 482, 575,
289  685, 816, 972, 1158, 1380, 1644, 1959, 2334, 2780, 3312,
290  3945, 4699, 5597, 6667, 7941, 9459, 11267, 13420, 15984, 19038,
291  22676, 27009, 32169, 38315, 45635, 54353, 64737, 77104, 91834, 109378,
292  130273, 155159, 184799, 220100, 262144};
294  0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6,
295  7, 7, 7, 8, 9, 9, 10, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15,
296  15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 22, 23, 24,
297  24, 25, 25, 26, 26, 26, 27, 27, 28, 29, 29, 30, 30, 30, 31, 31, 32, 33,
298  33, 34, 34, 34, 35, 35, 36, 37, 37, 37, 38, 38, 39, 39, 40, 40, 41, 41,
299  42, 42, 43, 43, 44, 44, 45, 45, 46, 46, 47, 47, 48, 48, 49, 49, 50, 50,
300  51, 51, 52, 52, 53, 53, 54, 54, 55, 55, 56, 56, 57, 57, 58, 58};
301 const int grpc_stats_table_2[129] = {
302  0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
303  15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 30,
304  32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60,
305  63, 66, 69, 72, 75, 78, 81, 84, 87, 90, 94, 98, 102, 106, 110,
306  114, 118, 122, 126, 131, 136, 141, 146, 151, 156, 162, 168, 174, 180, 186,
307  192, 199, 206, 213, 220, 228, 236, 244, 252, 260, 269, 278, 287, 297, 307,
308  317, 327, 338, 349, 360, 372, 384, 396, 409, 422, 436, 450, 464, 479, 494,
309  510, 526, 543, 560, 578, 596, 615, 634, 654, 674, 695, 717, 739, 762, 785,
310  809, 834, 859, 885, 912, 939, 967, 996, 1024};
312  0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,
313  8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 16,
314  17, 17, 18, 19, 19, 20, 21, 21, 22, 23, 23, 24, 25, 25, 26, 26, 27, 27, 28,
315  28, 29, 29, 30, 30, 31, 31, 32, 32, 33, 33, 34, 34, 35, 36, 36, 37, 38, 39,
316  40, 40, 41, 42, 42, 43, 44, 44, 45, 46, 46, 47, 48, 48, 49, 49, 50, 50, 51,
317  51, 52, 52, 53, 53, 54, 54, 55, 56, 57, 58, 59, 59, 60, 61, 62, 63, 63, 64,
318  65, 65, 66, 67, 67, 68, 69, 69, 70, 71, 71, 72, 72, 73, 73, 74, 75, 75, 76,
319  76, 77, 78, 79, 79, 80, 81, 82, 83, 84, 85, 85, 86, 87, 88, 88, 89, 90, 90,
320  91, 92, 92, 93, 94, 94, 95, 95, 96, 97, 97, 98, 98, 99};
321 const int grpc_stats_table_4[65] = {
322  0, 1, 2, 3, 4, 6, 8, 11,
323  15, 20, 26, 34, 44, 57, 73, 94,
324  121, 155, 199, 255, 327, 419, 537, 688,
325  881, 1128, 1444, 1848, 2365, 3026, 3872, 4954,
326  6338, 8108, 10373, 13270, 16976, 21717, 27782, 35541,
327  45467, 58165, 74409, 95189, 121772, 155778, 199281, 254933,
328  326126, 417200, 533707, 682750, 873414, 1117323, 1429345, 1828502,
329  2339127, 2992348, 3827987, 4896985, 6264509, 8013925, 10251880, 13114801,
330  16777216};
332  0, 0, 1, 1, 2, 3, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 11,
333  11, 12, 13, 13, 14, 15, 15, 16, 17, 17, 18, 19, 20, 20, 21, 22, 22, 23,
334  24, 25, 25, 26, 27, 27, 28, 29, 29, 30, 31, 31, 32, 33, 34, 34, 35, 36,
335  36, 37, 38, 39, 39, 40, 41, 41, 42, 43, 44, 44, 45, 45, 46, 47, 48, 48,
336  49, 50, 51, 51, 52, 53, 53, 54, 55, 56, 56, 57, 58, 58, 59};
337 const int grpc_stats_table_6[65] = {
338  0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
339  14, 16, 18, 20, 22, 24, 27, 30, 33, 36, 39, 43, 47,
340  51, 56, 61, 66, 72, 78, 85, 92, 100, 109, 118, 128, 139,
341  151, 164, 178, 193, 209, 226, 244, 264, 285, 308, 333, 359, 387,
342  418, 451, 486, 524, 565, 609, 656, 707, 762, 821, 884, 952, 1024};
344  0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,
345  6, 7, 7, 7, 8, 8, 9, 9, 10, 11, 11, 12, 12, 13, 13, 14, 14,
346  14, 15, 15, 16, 16, 17, 17, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23,
347  23, 24, 24, 24, 25, 26, 27, 27, 28, 28, 29, 29, 30, 30, 31, 31, 32,
348  32, 33, 33, 34, 35, 35, 36, 37, 37, 38, 38, 39, 39, 40, 40, 41, 41,
349  42, 42, 43, 44, 44, 45, 46, 46, 47, 48, 48, 49, 49, 50, 50, 51, 51};
350 const int grpc_stats_table_8[9] = {0, 1, 2, 4, 7, 13, 23, 39, 64};
351 const uint8_t grpc_stats_table_9[9] = {0, 0, 1, 2, 2, 3, 4, 4, 5};
353  value = grpc_core::Clamp(value, 0, 262144);
354  if (value < 6) {
356  return;
357  }
358  union {
359  double dbl;
360  uint64_t uint;
361  } _val, _bkt;
362  _val.dbl = value;
363  if (_val.uint < 4651092515166879744ull) {
364  int bucket =
365  grpc_stats_table_1[((_val.uint - 4618441417868443648ull) >> 49)] + 6;
366  _bkt.dbl = grpc_stats_table_0[bucket];
367  bucket -= (_val.uint < _bkt.uint);
369  return;
370  }
374 }
376  value = grpc_core::Clamp(value, 0, 1024);
377  if (value < 29) {
379  return;
380  }
381  union {
382  double dbl;
383  uint64_t uint;
384  } _val, _bkt;
385  _val.dbl = value;
386  if (_val.uint < 4642789003353915392ull) {
387  int bucket =
388  grpc_stats_table_3[((_val.uint - 4628855992006737920ull) >> 47)] + 29;
389  _bkt.dbl = grpc_stats_table_2[bucket];
390  bucket -= (_val.uint < _bkt.uint);
392  return;
393  }
397 }
399  value = grpc_core::Clamp(value, 0, 16777216);
400  if (value < 5) {
402  return;
403  }
404  union {
405  double dbl;
406  uint64_t uint;
407  } _val, _bkt;
408  _val.dbl = value;
409  if (_val.uint < 4683743612465315840ull) {
410  int bucket =
411  grpc_stats_table_5[((_val.uint - 4617315517961601024ull) >> 50)] + 5;
412  _bkt.dbl = grpc_stats_table_4[bucket];
413  bucket -= (_val.uint < _bkt.uint);
415  return;
416  }
420 }
422  value = grpc_core::Clamp(value, 0, 1024);
423  if (value < 13) {
425  return;
426  }
427  union {
428  double dbl;
429  uint64_t uint;
430  } _val, _bkt;
431  _val.dbl = value;
432  if (_val.uint < 4637863191261478912ull) {
433  int bucket =
434  grpc_stats_table_7[((_val.uint - 4623507967449235456ull) >> 48)] + 13;
435  _bkt.dbl = grpc_stats_table_6[bucket];
436  bucket -= (_val.uint < _bkt.uint);
438  return;
439  }
443 }
445  value = grpc_core::Clamp(value, 0, 16777216);
446  if (value < 5) {
448  return;
449  }
450  union {
451  double dbl;
452  uint64_t uint;
453  } _val, _bkt;
454  _val.dbl = value;
455  if (_val.uint < 4683743612465315840ull) {
456  int bucket =
457  grpc_stats_table_5[((_val.uint - 4617315517961601024ull) >> 50)] + 5;
458  _bkt.dbl = grpc_stats_table_4[bucket];
459  bucket -= (_val.uint < _bkt.uint);
461  return;
462  }
466 }
468  value = grpc_core::Clamp(value, 0, 16777216);
469  if (value < 5) {
471  return;
472  }
473  union {
474  double dbl;
475  uint64_t uint;
476  } _val, _bkt;
477  _val.dbl = value;
478  if (_val.uint < 4683743612465315840ull) {
479  int bucket =
480  grpc_stats_table_5[((_val.uint - 4617315517961601024ull) >> 50)] + 5;
481  _bkt.dbl = grpc_stats_table_4[bucket];
482  bucket -= (_val.uint < _bkt.uint);
484  return;
485  }
489 }
491  value = grpc_core::Clamp(value, 0, 1024);
492  if (value < 13) {
494  value);
495  return;
496  }
497  union {
498  double dbl;
499  uint64_t uint;
500  } _val, _bkt;
501  _val.dbl = value;
502  if (_val.uint < 4637863191261478912ull) {
503  int bucket =
504  grpc_stats_table_7[((_val.uint - 4623507967449235456ull) >> 48)] + 13;
505  _bkt.dbl = grpc_stats_table_6[bucket];
506  bucket -= (_val.uint < _bkt.uint);
508  bucket);
509  return;
510  }
514 }
516  value = grpc_core::Clamp(value, 0, 16777216);
517  if (value < 5) {
519  value);
520  return;
521  }
522  union {
523  double dbl;
524  uint64_t uint;
525  } _val, _bkt;
526  _val.dbl = value;
527  if (_val.uint < 4683743612465315840ull) {
528  int bucket =
529  grpc_stats_table_5[((_val.uint - 4617315517961601024ull) >> 50)] + 5;
530  _bkt.dbl = grpc_stats_table_4[bucket];
531  bucket -= (_val.uint < _bkt.uint);
533  bucket);
534  return;
535  }
539 }
541  value = grpc_core::Clamp(value, 0, 1024);
542  if (value < 13) {
545  return;
546  }
547  union {
548  double dbl;
549  uint64_t uint;
550  } _val, _bkt;
551  _val.dbl = value;
552  if (_val.uint < 4637863191261478912ull) {
553  int bucket =
554  grpc_stats_table_7[((_val.uint - 4623507967449235456ull) >> 48)] + 13;
555  _bkt.dbl = grpc_stats_table_6[bucket];
556  bucket -= (_val.uint < _bkt.uint);
559  return;
560  }
564 }
566  value = grpc_core::Clamp(value, 0, 1024);
567  if (value < 13) {
569  value);
570  return;
571  }
572  union {
573  double dbl;
574  uint64_t uint;
575  } _val, _bkt;
576  _val.dbl = value;
577  if (_val.uint < 4637863191261478912ull) {
578  int bucket =
579  grpc_stats_table_7[((_val.uint - 4623507967449235456ull) >> 48)] + 13;
580  _bkt.dbl = grpc_stats_table_6[bucket];
581  bucket -= (_val.uint < _bkt.uint);
583  bucket);
584  return;
585  }
589 }
591  value = grpc_core::Clamp(value, 0, 1024);
592  if (value < 13) {
595  return;
596  }
597  union {
598  double dbl;
599  uint64_t uint;
600  } _val, _bkt;
601  _val.dbl = value;
602  if (_val.uint < 4637863191261478912ull) {
603  int bucket =
604  grpc_stats_table_7[((_val.uint - 4623507967449235456ull) >> 48)] + 13;
605  _bkt.dbl = grpc_stats_table_6[bucket];
606  bucket -= (_val.uint < _bkt.uint);
609  return;
610  }
614 }
616  value = grpc_core::Clamp(value, 0, 1024);
617  if (value < 13) {
619  value);
620  return;
621  }
622  union {
623  double dbl;
624  uint64_t uint;
625  } _val, _bkt;
626  _val.dbl = value;
627  if (_val.uint < 4637863191261478912ull) {
628  int bucket =
629  grpc_stats_table_7[((_val.uint - 4623507967449235456ull) >> 48)] + 13;
630  _bkt.dbl = grpc_stats_table_6[bucket];
631  bucket -= (_val.uint < _bkt.uint);
633  bucket);
634  return;
635  }
639 }
641  value = grpc_core::Clamp(value, 0, 64);
642  if (value < 3) {
644  return;
645  }
646  union {
647  double dbl;
648  uint64_t uint;
649  } _val, _bkt;
650  _val.dbl = value;
651  if (_val.uint < 4625196817309499392ull) {
652  int bucket =
653  grpc_stats_table_9[((_val.uint - 4613937818241073152ull) >> 51)] + 3;
654  _bkt.dbl = grpc_stats_table_8[bucket];
655  bucket -= (_val.uint < _bkt.uint);
657  return;
658  }
662 }
663 const int grpc_stats_histo_buckets[13] = {64, 128, 64, 64, 64, 64, 64,
664  64, 64, 64, 64, 64, 8};
665 const int grpc_stats_histo_start[13] = {0, 64, 192, 256, 320, 384, 448,
666  512, 576, 640, 704, 768, 832};
667 const int* const grpc_stats_histo_bucket_boundaries[13] = {
673 void (*const grpc_stats_inc_histogram[13])(int x) = {
grpc_stats_table_0
const int grpc_stats_table_0[65]
Definition: stats_data.cc:285
GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_PER_WRITE
@ GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_PER_WRITE
Definition: stats_data.h:138
stats_data.h
grpc_stats_table_5
const uint8_t grpc_stats_table_5[87]
Definition: stats_data.cc:331
grpc_stats_histo_buckets
const int grpc_stats_histo_buckets[13]
Definition: stats_data.cc:663
grpc_stats_inc_tcp_read_size
void grpc_stats_inc_tcp_read_size(int value)
Definition: stats_data.cc:444
grpc_stats_table_1
const uint8_t grpc_stats_table_1[124]
Definition: stats_data.cc:293
grpc_stats_histogram_doc
const char * grpc_stats_histogram_doc[GRPC_STATS_HISTOGRAM_COUNT]
Definition: stats_data.cc:269
GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE
@ GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE
Definition: stats_data.h:135
GRPC_STATS_HISTOGRAM_COUNT
@ GRPC_STATS_HISTOGRAM_COUNT
Definition: stats_data.h:142
GRPC_STATS_HISTOGRAM_HTTP2_SEND_INITIAL_METADATA_PER_WRITE
@ GRPC_STATS_HISTOGRAM_HTTP2_SEND_INITIAL_METADATA_PER_WRITE
Definition: stats_data.h:137
useful.h
grpc_stats_inc_http2_send_message_size
void grpc_stats_inc_http2_send_message_size(int value)
Definition: stats_data.cc:515
GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE
@ GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE
Definition: stats_data.h:132
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
grpc_stats_counter_name
const char * grpc_stats_counter_name[GRPC_STATS_COUNTER_COUNT]
Definition: stats_data.cc:30
GRPC_STATS_INC_HISTOGRAM
#define GRPC_STATS_INC_HISTOGRAM(histogram, index)
Definition: src/core/lib/debug/stats.h:49
stats.h
GRPC_STATS_HISTOGRAM_HTTP2_SEND_FLOWCTL_PER_WRITE
@ GRPC_STATS_HISTOGRAM_HTTP2_SEND_FLOWCTL_PER_WRITE
Definition: stats_data.h:140
grpc_stats_table_3
const uint8_t grpc_stats_table_3[166]
Definition: stats_data.cc:311
grpc_stats_table_9
const uint8_t grpc_stats_table_9[9]
Definition: stats_data.cc:351
grpc_stats_inc_server_cqs_checked
void grpc_stats_inc_server_cqs_checked(int value)
Definition: stats_data.cc:640
GRPC_STATS_HISTOGRAM_POLL_EVENTS_RETURNED
@ GRPC_STATS_HISTOGRAM_POLL_EVENTS_RETURNED
Definition: stats_data.h:130
grpc_stats_histo_find_bucket_slow
int grpc_stats_histo_find_bucket_slow(int value, const int *table, int table_size)
Definition: stats.cc:72
uint64_t
unsigned __int64 uint64_t
Definition: stdint-msvc2008.h:90
grpc_stats_inc_tcp_write_iov_size
void grpc_stats_inc_tcp_write_iov_size(int value)
Definition: stats_data.cc:421
grpc_stats_inc_tcp_read_offer
void grpc_stats_inc_tcp_read_offer(int value)
Definition: stats_data.cc:467
grpc_stats_histo_start
const int grpc_stats_histo_start[13]
Definition: stats_data.cc:665
x
int x
Definition: bloaty/third_party/googletest/googlemock/test/gmock-matchers_test.cc:3610
GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE
@ GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE
Definition: stats_data.h:136
GRPC_STATS_HISTOGRAM_CALL_INITIAL_SIZE
@ GRPC_STATS_HISTOGRAM_CALL_INITIAL_SIZE
Definition: stats_data.h:129
grpc_stats_table_7
const uint8_t grpc_stats_table_7[102]
Definition: stats_data.cc:343
grpc_stats_histogram_name
const char * grpc_stats_histogram_name[GRPC_STATS_HISTOGRAM_COUNT]
Definition: stats_data.cc:254
grpc_stats_inc_http2_send_flowctl_per_write
void grpc_stats_inc_http2_send_flowctl_per_write(int value)
Definition: stats_data.cc:615
grpc_stats_table_8
const int grpc_stats_table_8[9]
Definition: stats_data.cc:350
grpc_stats_inc_tcp_read_offer_iov_size
void grpc_stats_inc_tcp_read_offer_iov_size(int value)
Definition: stats_data.cc:490
GRPC_STATS_HISTOGRAM_HTTP2_SEND_TRAILING_METADATA_PER_WRITE
@ GRPC_STATS_HISTOGRAM_HTTP2_SEND_TRAILING_METADATA_PER_WRITE
Definition: stats_data.h:139
value
const char * value
Definition: hpack_parser_table.cc:165
grpc_core::Clamp
T Clamp(T val, T min, T max)
Definition: useful.h:31
GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE
@ GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE
Definition: stats_data.h:131
GRPC_STATS_HISTOGRAM_TCP_READ_SIZE
@ GRPC_STATS_HISTOGRAM_TCP_READ_SIZE
Definition: stats_data.h:133
uint
#define uint
Definition: M68KDisassembler.c:64
grpc_stats_table_2
const int grpc_stats_table_2[129]
Definition: stats_data.cc:301
grpc_stats_inc_histogram
void(*const grpc_stats_inc_histogram[13])(int x)
Definition: stats_data.cc:673
grpc_stats_table_4
const int grpc_stats_table_4[65]
Definition: stats_data.cc:321
grpc_stats_inc_tcp_write_size
void grpc_stats_inc_tcp_write_size(int value)
Definition: stats_data.cc:398
grpc_stats_inc_http2_send_trailing_metadata_per_write
void grpc_stats_inc_http2_send_trailing_metadata_per_write(int value)
Definition: stats_data.cc:590
GRPC_STATS_COUNTER_COUNT
@ GRPC_STATS_COUNTER_COUNT
Definition: stats_data.h:124
grpc_stats_inc_http2_send_message_per_write
void grpc_stats_inc_http2_send_message_per_write(int value)
Definition: stats_data.cc:565
grpc_stats_inc_http2_send_initial_metadata_per_write
void grpc_stats_inc_http2_send_initial_metadata_per_write(int value)
Definition: stats_data.cc:540
GRPC_STATS_HISTOGRAM_SERVER_CQS_CHECKED
@ GRPC_STATS_HISTOGRAM_SERVER_CQS_CHECKED
Definition: stats_data.h:141
grpc_stats_counter_doc
const char * grpc_stats_counter_doc[GRPC_STATS_COUNTER_COUNT]
Definition: stats_data.cc:129
GRPC_STATS_HISTOGRAM_TCP_READ_OFFER
@ GRPC_STATS_HISTOGRAM_TCP_READ_OFFER
Definition: stats_data.h:134
grpc_stats_table_6
const int grpc_stats_table_6[65]
Definition: stats_data.cc:337
grpc_stats_inc_call_initial_size
void grpc_stats_inc_call_initial_size(int value)
Definition: stats_data.cc:352
grpc_stats_inc_poll_events_returned
void grpc_stats_inc_poll_events_returned(int value)
Definition: stats_data.cc:375
grpc_stats_histo_bucket_boundaries
const int *const grpc_stats_histo_bucket_boundaries[13]
Definition: stats_data.cc:667
port_platform.h


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:22