Functions | Variables
stats_data.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/debug/stats_data.h"
#include <inttypes.h>
#include "src/core/lib/debug/stats.h"
#include "src/core/lib/gpr/useful.h"
Include dependency graph for stats_data.cc:

Go to the source code of this file.

Functions

void grpc_stats_inc_call_initial_size (int value)
 
void grpc_stats_inc_http2_send_flowctl_per_write (int value)
 
void grpc_stats_inc_http2_send_initial_metadata_per_write (int value)
 
void grpc_stats_inc_http2_send_message_per_write (int value)
 
void grpc_stats_inc_http2_send_message_size (int value)
 
void grpc_stats_inc_http2_send_trailing_metadata_per_write (int value)
 
void grpc_stats_inc_poll_events_returned (int value)
 
void grpc_stats_inc_server_cqs_checked (int value)
 
void grpc_stats_inc_tcp_read_offer (int value)
 
void grpc_stats_inc_tcp_read_offer_iov_size (int value)
 
void grpc_stats_inc_tcp_read_size (int value)
 
void grpc_stats_inc_tcp_write_iov_size (int value)
 
void grpc_stats_inc_tcp_write_size (int value)
 

Variables

const char * grpc_stats_counter_doc [GRPC_STATS_COUNTER_COUNT]
 
const char * grpc_stats_counter_name [GRPC_STATS_COUNTER_COUNT]
 
const int *const grpc_stats_histo_bucket_boundaries [13]
 
const int grpc_stats_histo_buckets [13]
 
const int grpc_stats_histo_start [13]
 
const char * grpc_stats_histogram_doc [GRPC_STATS_HISTOGRAM_COUNT]
 
const char * grpc_stats_histogram_name [GRPC_STATS_HISTOGRAM_COUNT]
 
void(*const grpc_stats_inc_histogram [13])(int x)
 
const int grpc_stats_table_0 [65]
 
const uint8_t grpc_stats_table_1 [124]
 
const int grpc_stats_table_2 [129]
 
const uint8_t grpc_stats_table_3 [166]
 
const int grpc_stats_table_4 [65]
 
const uint8_t grpc_stats_table_5 [87]
 
const int grpc_stats_table_6 [65]
 
const uint8_t grpc_stats_table_7 [102]
 
const int grpc_stats_table_8 [9] = {0, 1, 2, 4, 7, 13, 23, 39, 64}
 
const uint8_t grpc_stats_table_9 [9] = {0, 0, 1, 2, 2, 3, 4, 4, 5}
 

Function Documentation

◆ grpc_stats_inc_call_initial_size()

void grpc_stats_inc_call_initial_size ( int  value)

Definition at line 352 of file stats_data.cc.

◆ grpc_stats_inc_http2_send_flowctl_per_write()

void grpc_stats_inc_http2_send_flowctl_per_write ( int  value)

Definition at line 615 of file stats_data.cc.

◆ grpc_stats_inc_http2_send_initial_metadata_per_write()

void grpc_stats_inc_http2_send_initial_metadata_per_write ( int  value)

Definition at line 540 of file stats_data.cc.

◆ grpc_stats_inc_http2_send_message_per_write()

void grpc_stats_inc_http2_send_message_per_write ( int  value)

Definition at line 565 of file stats_data.cc.

◆ grpc_stats_inc_http2_send_message_size()

void grpc_stats_inc_http2_send_message_size ( int  value)

Definition at line 515 of file stats_data.cc.

◆ grpc_stats_inc_http2_send_trailing_metadata_per_write()

void grpc_stats_inc_http2_send_trailing_metadata_per_write ( int  value)

Definition at line 590 of file stats_data.cc.

◆ grpc_stats_inc_poll_events_returned()

void grpc_stats_inc_poll_events_returned ( int  value)

Definition at line 375 of file stats_data.cc.

◆ grpc_stats_inc_server_cqs_checked()

void grpc_stats_inc_server_cqs_checked ( int  value)

Definition at line 640 of file stats_data.cc.

◆ grpc_stats_inc_tcp_read_offer()

void grpc_stats_inc_tcp_read_offer ( int  value)

Definition at line 467 of file stats_data.cc.

◆ grpc_stats_inc_tcp_read_offer_iov_size()

void grpc_stats_inc_tcp_read_offer_iov_size ( int  value)

Definition at line 490 of file stats_data.cc.

◆ grpc_stats_inc_tcp_read_size()

void grpc_stats_inc_tcp_read_size ( int  value)

Definition at line 444 of file stats_data.cc.

◆ grpc_stats_inc_tcp_write_iov_size()

void grpc_stats_inc_tcp_write_iov_size ( int  value)

Definition at line 421 of file stats_data.cc.

◆ grpc_stats_inc_tcp_write_size()

void grpc_stats_inc_tcp_write_size ( int  value)

Definition at line 398 of file stats_data.cc.

Variable Documentation

◆ grpc_stats_counter_doc

const char* grpc_stats_counter_doc[GRPC_STATS_COUNTER_COUNT]

Definition at line 129 of file stats_data.cc.

◆ grpc_stats_counter_name

const char* grpc_stats_counter_name[GRPC_STATS_COUNTER_COUNT]

Definition at line 30 of file stats_data.cc.

◆ grpc_stats_histo_bucket_boundaries

const int* const grpc_stats_histo_bucket_boundaries[13]

◆ grpc_stats_histo_buckets

const int grpc_stats_histo_buckets[13]
Initial value:
= {64, 128, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 8}

Definition at line 663 of file stats_data.cc.

◆ grpc_stats_histo_start

const int grpc_stats_histo_start[13]
Initial value:
= {0, 64, 192, 256, 320, 384, 448,
512, 576, 640, 704, 768, 832}

Definition at line 665 of file stats_data.cc.

◆ grpc_stats_histogram_doc

const char* grpc_stats_histogram_doc[GRPC_STATS_HISTOGRAM_COUNT]
Initial value:
= {
"Initial size of the grpc_call arena created at call start",
"How many events are called for each syscall_poll",
"Number of bytes offered to each syscall_write",
"Number of byte segments offered to each syscall_write",
"Number of bytes received by each syscall_read",
"Number of bytes offered to each syscall_read",
"Number of byte segments offered to each syscall_read",
"Size of messages received by HTTP2 transport",
"Number of streams initiated written per TCP write",
"Number of streams whose payload was written per TCP write",
"Number of streams terminated per TCP write",
"Number of flow control updates written per TCP write",
"How many completion queues were checked looking for a CQ that had "
"requested the incoming call",
}

Definition at line 269 of file stats_data.cc.

◆ grpc_stats_histogram_name

const char* grpc_stats_histogram_name[GRPC_STATS_HISTOGRAM_COUNT]
Initial value:
= {
"call_initial_size",
"poll_events_returned",
"tcp_write_size",
"tcp_write_iov_size",
"tcp_read_size",
"tcp_read_offer",
"tcp_read_offer_iov_size",
"http2_send_message_size",
"http2_send_initial_metadata_per_write",
"http2_send_message_per_write",
"http2_send_trailing_metadata_per_write",
"http2_send_flowctl_per_write",
"server_cqs_checked",
}

Definition at line 254 of file stats_data.cc.

◆ grpc_stats_inc_histogram

void(*const grpc_stats_inc_histogram[13])(int x)

◆ grpc_stats_table_0

const int grpc_stats_table_0[65]
Initial value:
= {
0, 1, 2, 3, 4, 5, 7, 9, 11, 14,
17, 21, 26, 32, 39, 47, 57, 68, 82, 98,
117, 140, 167, 199, 238, 284, 339, 404, 482, 575,
685, 816, 972, 1158, 1380, 1644, 1959, 2334, 2780, 3312,
3945, 4699, 5597, 6667, 7941, 9459, 11267, 13420, 15984, 19038,
22676, 27009, 32169, 38315, 45635, 54353, 64737, 77104, 91834, 109378,
130273, 155159, 184799, 220100, 262144}

Definition at line 285 of file stats_data.cc.

◆ grpc_stats_table_1

const uint8_t grpc_stats_table_1[124]
Initial value:
= {
0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6,
7, 7, 7, 8, 9, 9, 10, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15,
15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 22, 23, 24,
24, 25, 25, 26, 26, 26, 27, 27, 28, 29, 29, 30, 30, 30, 31, 31, 32, 33,
33, 34, 34, 34, 35, 35, 36, 37, 37, 37, 38, 38, 39, 39, 40, 40, 41, 41,
42, 42, 43, 43, 44, 44, 45, 45, 46, 46, 47, 47, 48, 48, 49, 49, 50, 50,
51, 51, 52, 52, 53, 53, 54, 54, 55, 55, 56, 56, 57, 57, 58, 58}

Definition at line 293 of file stats_data.cc.

◆ grpc_stats_table_2

const int grpc_stats_table_2[129]
Initial value:
= {
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, 30,
32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60,
63, 66, 69, 72, 75, 78, 81, 84, 87, 90, 94, 98, 102, 106, 110,
114, 118, 122, 126, 131, 136, 141, 146, 151, 156, 162, 168, 174, 180, 186,
192, 199, 206, 213, 220, 228, 236, 244, 252, 260, 269, 278, 287, 297, 307,
317, 327, 338, 349, 360, 372, 384, 396, 409, 422, 436, 450, 464, 479, 494,
510, 526, 543, 560, 578, 596, 615, 634, 654, 674, 695, 717, 739, 762, 785,
809, 834, 859, 885, 912, 939, 967, 996, 1024}

Definition at line 301 of file stats_data.cc.

◆ grpc_stats_table_3

const uint8_t grpc_stats_table_3[166]
Initial value:
= {
0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,
8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 16,
17, 17, 18, 19, 19, 20, 21, 21, 22, 23, 23, 24, 25, 25, 26, 26, 27, 27, 28,
28, 29, 29, 30, 30, 31, 31, 32, 32, 33, 33, 34, 34, 35, 36, 36, 37, 38, 39,
40, 40, 41, 42, 42, 43, 44, 44, 45, 46, 46, 47, 48, 48, 49, 49, 50, 50, 51,
51, 52, 52, 53, 53, 54, 54, 55, 56, 57, 58, 59, 59, 60, 61, 62, 63, 63, 64,
65, 65, 66, 67, 67, 68, 69, 69, 70, 71, 71, 72, 72, 73, 73, 74, 75, 75, 76,
76, 77, 78, 79, 79, 80, 81, 82, 83, 84, 85, 85, 86, 87, 88, 88, 89, 90, 90,
91, 92, 92, 93, 94, 94, 95, 95, 96, 97, 97, 98, 98, 99}

Definition at line 311 of file stats_data.cc.

◆ grpc_stats_table_4

const int grpc_stats_table_4[65]
Initial value:
= {
0, 1, 2, 3, 4, 6, 8, 11,
15, 20, 26, 34, 44, 57, 73, 94,
121, 155, 199, 255, 327, 419, 537, 688,
881, 1128, 1444, 1848, 2365, 3026, 3872, 4954,
6338, 8108, 10373, 13270, 16976, 21717, 27782, 35541,
45467, 58165, 74409, 95189, 121772, 155778, 199281, 254933,
326126, 417200, 533707, 682750, 873414, 1117323, 1429345, 1828502,
2339127, 2992348, 3827987, 4896985, 6264509, 8013925, 10251880, 13114801,
16777216}

Definition at line 321 of file stats_data.cc.

◆ grpc_stats_table_5

const uint8_t grpc_stats_table_5[87]
Initial value:
= {
0, 0, 1, 1, 2, 3, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 11,
11, 12, 13, 13, 14, 15, 15, 16, 17, 17, 18, 19, 20, 20, 21, 22, 22, 23,
24, 25, 25, 26, 27, 27, 28, 29, 29, 30, 31, 31, 32, 33, 34, 34, 35, 36,
36, 37, 38, 39, 39, 40, 41, 41, 42, 43, 44, 44, 45, 45, 46, 47, 48, 48,
49, 50, 51, 51, 52, 53, 53, 54, 55, 56, 56, 57, 58, 58, 59}

Definition at line 331 of file stats_data.cc.

◆ grpc_stats_table_6

const int grpc_stats_table_6[65]
Initial value:
= {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
14, 16, 18, 20, 22, 24, 27, 30, 33, 36, 39, 43, 47,
51, 56, 61, 66, 72, 78, 85, 92, 100, 109, 118, 128, 139,
151, 164, 178, 193, 209, 226, 244, 264, 285, 308, 333, 359, 387,
418, 451, 486, 524, 565, 609, 656, 707, 762, 821, 884, 952, 1024}

Definition at line 337 of file stats_data.cc.

◆ grpc_stats_table_7

const uint8_t grpc_stats_table_7[102]
Initial value:
= {
0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,
6, 7, 7, 7, 8, 8, 9, 9, 10, 11, 11, 12, 12, 13, 13, 14, 14,
14, 15, 15, 16, 16, 17, 17, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23,
23, 24, 24, 24, 25, 26, 27, 27, 28, 28, 29, 29, 30, 30, 31, 31, 32,
32, 33, 33, 34, 35, 35, 36, 37, 37, 38, 38, 39, 39, 40, 40, 41, 41,
42, 42, 43, 44, 44, 45, 46, 46, 47, 48, 48, 49, 49, 50, 50, 51, 51}

Definition at line 343 of file stats_data.cc.

◆ grpc_stats_table_8

const int grpc_stats_table_8[9] = {0, 1, 2, 4, 7, 13, 23, 39, 64}

Definition at line 350 of file stats_data.cc.

◆ grpc_stats_table_9

const uint8_t grpc_stats_table_9[9] = {0, 0, 1, 2, 2, 3, 4, 4, 5}

Definition at line 351 of file stats_data.cc.

grpc_stats_table_0
const int grpc_stats_table_0[65]
Definition: stats_data.cc:285
grpc_stats_inc_tcp_read_size
void grpc_stats_inc_tcp_read_size(int value)
Definition: stats_data.cc:444
grpc_stats_inc_http2_send_message_size
void grpc_stats_inc_http2_send_message_size(int value)
Definition: stats_data.cc:515
grpc_stats_inc_server_cqs_checked
void grpc_stats_inc_server_cqs_checked(int value)
Definition: stats_data.cc:640
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_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_table_2
const int grpc_stats_table_2[129]
Definition: stats_data.cc:301
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_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_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
Author(s):
autogenerated on Fri May 16 2025 03:01:32