aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/debug/stats_data.c
blob: 445dcb67a326ae92943cb1536c1997d043d7a62c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
/*
 * Copyright 2017 gRPC authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * Automatically generated by tools/codegen/core/gen_stats_data.py
 */

#include "src/core/lib/debug/stats_data.h"
const char *grpc_stats_counter_name[GRPC_STATS_COUNTER_COUNT] = {
    "client_calls_created",
    "server_calls_created",
    "syscall_poll",
    "syscall_wait",
    "pollset_kick",
    "pollset_kicked_without_poller",
    "pollset_kicked_again",
    "pollset_kick_wakeup_fd",
    "pollset_kick_wakeup_cv",
    "pollset_kick_own_thread",
    "histogram_slow_lookups",
    "syscall_write",
    "syscall_read",
    "http2_op_batches",
    "http2_op_cancel",
    "http2_op_send_initial_metadata",
    "http2_op_send_message",
    "http2_op_send_trailing_metadata",
    "http2_op_recv_initial_metadata",
    "http2_op_recv_message",
    "http2_op_recv_trailing_metadata",
    "http2_pings_sent",
    "http2_writes_begun",
    "combiner_locks_initiated",
    "combiner_locks_scheduled_items",
    "combiner_locks_scheduled_final_items",
    "combiner_locks_offloaded",
    "executor_scheduled_items",
    "executor_scheduled_to_self",
    "executor_wakeup_initiated",
    "executor_queue_drained",
};
const char *grpc_stats_histogram_name[GRPC_STATS_HISTOGRAM_COUNT] = {
    "call_initial_size",  "poll_events_returned",    "tcp_write_size",
    "tcp_write_iov_size", "tcp_read_size",           "tcp_read_offer",
    "tcp_read_iov_size",  "http2_send_message_size",
};
const double grpc_stats_table_0[64] = {0,
                                       1,
                                       2,
                                       3,
                                       4,
                                       5,
                                       6.03034139457,
                                       7.27300346702,
                                       8.77173877401,
                                       10.5793158863,
                                       12.759377303,
                                       15.3886802239,
                                       18.5597990724,
                                       22.3843849243,
                                       26.9970966002,
                                       32.5603418323,
                                       39.2699954346,
                                       47.3622958068,
                                       57.1221625891,
                                       68.8932283217,
                                       83.0899373109,
                                       100.212137688,
                                       120.862680427,
                                       145.768644968,
                                       175.806938756,
                                       212.035172047,
                                       255.72889502,
                                       308.426508286,
                                       371.98342802,
                                       448.637412817,
                                       541.087352333,
                                       652.588291771,
                                       787.066037897,
                                       949.255381718,
                                       1144.86680448,
                                       1380.78753647,
                                       1665.32404765,
                                       2008.49450799,
                                       2422.38151446,
                                       2921.55750402,
                                       3523.59783062,
                                       4249.69957117,
                                       5125.4278477,
                                       6181.61594298,
                                       7455.45090126,
                                       8991.78283702,
                                       10844.7040506,
                                       13079.4535497,
                                       15774.7140318,
                                       19025.3822027,
                                       22945.9099689,
                                       27674.3341444,
                                       33377.1365516,
                                       40255.1056359,
                                       48550.4059718,
                                       58555.104571,
                                       70621.4541917,
                                       85174.2957114,
                                       102726.016236,
                                       123894.589602,
                                       149425.334448,
                                       180217.155944,
                                       217354.195101,
                                       262144.0};
const uint8_t grpc_stats_table_1[124] = {
    0,   2,   2,   4,   4,   6,   6,   8,   8,   11,  11,  11,  13,  13,
    15,  15,  17,  17,  20,  20,  20,  21,  23,  23,  26,  26,  26,  28,
    28,  30,  30,  32,  32,  35,  35,  35,  37,  37,  38,  41,  41,  41,
    43,  43,  45,  45,  47,  47,  50,  50,  50,  52,  52,  54,  54,  56,
    56,  58,  58,  60,  60,  62,  62,  65,  65,  65,  67,  67,  69,  69,
    71,  71,  73,  73,  76,  76,  76,  78,  78,  80,  80,  82,  82,  84,
    84,  86,  86,  88,  88,  91,  91,  91,  93,  93,  95,  95,  97,  97,
    100, 100, 100, 101, 103, 103, 106, 106, 106, 108, 108, 110, 110, 112,
    112, 115, 115, 115, 117, 117, 118, 121, 121, 121, 124, 124};
const double grpc_stats_table_2[128] = {0,
                                        1,
                                        2,
                                        3,
                                        4,
                                        5,
                                        6,
                                        7,
                                        8,
                                        9,
                                        10,
                                        11,
                                        12,
                                        13,
                                        14,
                                        15,
                                        16,
                                        17,
                                        18,
                                        19,
                                        20,
                                        21,
                                        22,
                                        23,
                                        24,
                                        25,
                                        26,
                                        27,
                                        28,
                                        29.0367057593,
                                        30.1117957626,
                                        31.2266911945,
                                        32.382865859,
                                        33.5818481283,
                                        34.8252229627,
                                        36.1146340061,
                                        37.4517857586,
                                        38.8384458298,
                                        40.2764472753,
                                        41.7676910202,
                                        43.3141483714,
                                        44.9178636242,
                                        46.580956764,
                                        48.3056262695,
                                        50.0941520181,
                                        51.9488983005,
                                        53.8723169454,
                                        55.8669505614,
                                        57.9354358972,
                                        60.0805073281,
                                        62.3050004699,
                                        64.6118559278,
                                        67.0041231836,
                                        69.4849646266,
                                        72.0576597342,
                                        74.7256094075,
                                        77.4923404661,
                                        80.3615103113,
                                        83.3369117602,
                                        86.4224780597,
                                        89.6222880862,
                                        92.940571737,
                                        96.3817155226,
                                        99.9502683646,
                                        103.65094761,
                                        107.488645265,
                                        111.468434465,
                                        115.595576179,
                                        119.875526164,
                                        124.313942178,
                                        128.916691457,
                                        133.689858475,
                                        138.639752984,
                                        143.772918355,
                                        149.09614023,
                                        154.616455489,
                                        160.341161557,
                                        166.277826044,
                                        172.434296755,
                                        178.818712061,
                                        185.439511656,
                                        192.305447719,
                                        199.425596476,
                                        206.809370205,
                                        214.466529676,
                                        222.407197051,
                                        230.641869269,
                                        239.181431919,
                                        248.037173633,
                                        257.220801006,
                                        266.744454071,
                                        276.62072235,
                                        286.862661493,
                                        297.48381054,
                                        308.498209814,
                                        319.920419488,
                                        331.765538824,
                                        344.04922614,
                                        356.787719506,
                                        369.997858208,
                                        383.697105013,
                                        397.903569249,
                                        412.636030746,
                                        427.913964659,
                                        443.757567219,
                                        460.187782422,
                                        477.226329722,
                                        494.895732741,
                                        513.219349041,
                                        532.221401003,
                                        551.927007848,
                                        572.36221884,
                                        593.554047722,
                                        615.530508428,
                                        638.320652111,
                                        661.954605552,
                                        686.46361098,
                                        711.880067376,
                                        738.237573297,
                                        765.570971297,
                                        793.91639398,
                                        823.311311768,
                                        853.794582433,
                                        885.406502465,
                                        918.188860339,
                                        952.184991756,
                                        987.439836931,
                                        1024.0};
const uint8_t grpc_stats_table_3[166] = {
    0,   2,   2,   4,   4,   6,   6,   7,   8,   10,  10,  11,  12,  14,
    14,  15,  17,  17,  18,  20,  20,  22,  22,  24,  24,  25,  27,  27,
    29,  29,  31,  31,  34,  34,  34,  36,  36,  38,  38,  39,  40,  42,
    42,  43,  44,  46,  46,  47,  49,  49,  50,  52,  52,  54,  54,  55,
    57,  57,  59,  59,  61,  61,  63,  63,  65,  65,  68,  68,  68,  70,
    70,  71,  72,  73,  75,  75,  76,  78,  78,  79,  81,  81,  82,  84,
    84,  86,  86,  87,  89,  89,  91,  91,  93,  93,  95,  95,  97,  97,
    100, 100, 100, 102, 102, 103, 104, 105, 107, 107, 108, 109, 111, 111,
    113, 113, 114, 116, 116, 117, 119, 119, 121, 121, 123, 123, 125, 125,
    127, 127, 129, 129, 131, 131, 134, 134, 134, 135, 136, 137, 139, 139,
    140, 141, 143, 143, 144, 146, 146, 148, 148, 149, 151, 151, 153, 153,
    155, 155, 157, 157, 159, 159, 161, 161, 163, 163, 166, 166};
const double grpc_stats_table_4[64] = {0,
                                       1,
                                       2,
                                       3,
                                       4,
                                       5.17974600698,
                                       6.70744217421,
                                       8.68571170472,
                                       11.2474451301,
                                       14.5647272503,
                                       18.8603969544,
                                       24.4230164536,
                                       31.6262554885,
                                       40.9539926456,
                                       53.032819969,
                                       68.6741343683,
                                       88.9286433193,
                                       115.156946285,
                                       149.120933174,
                                       193.102139541,
                                       250.055009057,
                                       323.805358672,
                                       419.307378404,
                                       542.976429747,
                                       703.119998467,
                                       910.495751121,
                                       1179.03418281,
                                       1526.77440013,
                                       1977.07590065,
                                       2560.18775048,
                                       3315.28056941,
                                       4293.07782286,
                                       5559.26317765,
                                       7198.89281155,
                                       9322.10907382,
                                       12071.5393129,
                                       15631.8768886,
                                       20242.2879738,
                                       26212.4775761,
                                       33943.4940145,
                                       43954.6693961,
                                       56918.5058232,
                                       73705.8508152,
                                       95444.3966128,
                                       123594.433061,
                                       160046.942783,
                                       207250.628202,
                                       268376.403469,
                                       347530.401059,
                                       450029.801797,
                                       582760.01722,
                                       754637.218056,
                                       977207.279236,
                                       1265421.37565,
                                       1638640.32942,
                                       2121935.1758,
                                       2747771.31348,
                                       3558189.37227,
                                       4607629.29828,
                                       5966587.36485,
                                       7726351.7696,
                                       10005134.9318,
                                       12956014.428,
                                       16777216.0};
const uint8_t grpc_stats_table_5[87] = {
    0,  1,  3,  3,  4,  6,  6,  7,  9,  9,  10, 12, 12, 13, 15, 15, 16, 18,
    18, 19, 21, 21, 22, 24, 24, 25, 27, 27, 28, 30, 30, 31, 32, 34, 34, 36,
    36, 37, 39, 39, 40, 42, 42, 43, 44, 46, 46, 47, 49, 49, 51, 51, 52, 53,
    55, 55, 56, 58, 58, 59, 61, 61, 63, 63, 64, 65, 67, 67, 68, 70, 70, 71,
    73, 73, 75, 75, 76, 77, 79, 79, 80, 82, 82, 83, 85, 85, 87};
const double grpc_stats_table_6[64] = {0,
                                       1,
                                       2,
                                       3,
                                       4,
                                       5,
                                       6,
                                       7,
                                       8,
                                       9,
                                       10,
                                       11,
                                       12.0020736244,
                                       13.0954337532,
                                       14.2883963681,
                                       15.5900350167,
                                       17.0102498252,
                                       18.5598427974,
                                       20.2505999737,
                                       22.0953810747,
                                       24.1082173107,
                                       26.3044181014,
                                       28.7006875181,
                                       31.315251333,
                                       34.1679956422,
                                       37.2806181177,
                                       40.6767930374,
                                       44.3823513489,
                                       48.4254771375,
                                       52.8369219909,
                                       57.6502388927,
                                       62.902037423,
                                       68.6322622068,
                                       74.8844967285,
                                       81.7062948236,
                                       89.1495423679,
                                       97.2708519163,
                                       106.131993291,
                                       115.800363399,
                                       126.34949884,
                                       137.859635225,
                                       150.418317437,
                                       164.121065485,
                                       179.072101023,
                                       195.38514005,
                                       213.184257818,
                                       232.604832535,
                                       253.794575043,
                                       276.914652285,
                                       302.140913126,
                                       329.665225843,
                                       359.696937452,
                                       392.464465978,
                                       428.217037783,
                                       467.226583154,
                                       509.78980457,
                                       556.230433401,
                                       606.901692163,
                                       662.1889811,
                                       722.512809492,
                                       788.331994007,
                                       860.147148411,
                                       938.504491184,
                                       1024.0};
const uint8_t grpc_stats_table_7[52] = {
    0,  1,  2,  3,  4,  5,  6,  7,  8,  9,  10, 11, 12, 13, 14, 15, 16, 17,
    18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
    36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 52};
const int grpc_stats_histo_buckets[8] = {64, 128, 64, 64, 64, 64, 64, 64};
const int grpc_stats_histo_start[8] = {0, 64, 192, 256, 320, 384, 448, 512};
const double *const grpc_stats_histo_bucket_boundaries[8] = {
    grpc_stats_table_0, grpc_stats_table_2, grpc_stats_table_4,
    grpc_stats_table_6, grpc_stats_table_4, grpc_stats_table_4,
    grpc_stats_table_6, grpc_stats_table_4};