|
|
|
@ -24,6 +24,12 @@ const char *grpc_stats_counter_name[GRPC_STATS_COUNTER_COUNT] = { |
|
|
|
|
"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", |
|
|
|
@ -47,10 +53,226 @@ const char *grpc_stats_counter_name[GRPC_STATS_COUNTER_COUNT] = { |
|
|
|
|
"executor_queue_drained", |
|
|
|
|
}; |
|
|
|
|
const char *grpc_stats_histogram_name[GRPC_STATS_HISTOGRAM_COUNT] = { |
|
|
|
|
"tcp_write_size", "tcp_write_iov_size", "tcp_read_size", |
|
|
|
|
"tcp_read_offer", "tcp_read_iov_size", "http2_send_message_size", |
|
|
|
|
"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, |
|
|
|
@ -114,13 +336,13 @@ const double grpc_stats_table_0[64] = {0, |
|
|
|
|
10005134.9318, |
|
|
|
|
12956014.428, |
|
|
|
|
16777216.0}; |
|
|
|
|
const uint8_t grpc_stats_table_1[87] = { |
|
|
|
|
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_2[64] = {0, |
|
|
|
|
const double grpc_stats_table_6[64] = {0, |
|
|
|
|
1, |
|
|
|
|
2, |
|
|
|
|
3, |
|
|
|
@ -184,12 +406,13 @@ const double grpc_stats_table_2[64] = {0, |
|
|
|
|
860.147148411, |
|
|
|
|
938.504491184, |
|
|
|
|
1024.0}; |
|
|
|
|
const uint8_t grpc_stats_table_3[52] = { |
|
|
|
|
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[6] = {64, 64, 64, 64, 64, 64}; |
|
|
|
|
const int grpc_stats_histo_start[6] = {0, 64, 128, 192, 256, 320}; |
|
|
|
|
const double *const grpc_stats_histo_bucket_boundaries[6] = { |
|
|
|
|
grpc_stats_table_0, grpc_stats_table_2, grpc_stats_table_0, |
|
|
|
|
grpc_stats_table_0, grpc_stats_table_2, grpc_stats_table_0}; |
|
|
|
|
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}; |
|
|
|
|