|
|
@ -46,10 +46,12 @@ typedef enum { |
|
|
|
GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_ITEMS, |
|
|
|
GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_ITEMS, |
|
|
|
GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS, |
|
|
|
GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS, |
|
|
|
GRPC_STATS_COUNTER_COMBINER_LOCKS_OFFLOADED, |
|
|
|
GRPC_STATS_COUNTER_COMBINER_LOCKS_OFFLOADED, |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_ITEMS, |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_SHORT_ITEMS, |
|
|
|
|
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_LONG_ITEMS, |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_TO_SELF, |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_TO_SELF, |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_WAKEUP_INITIATED, |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_WAKEUP_INITIATED, |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_QUEUE_DRAINED, |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_QUEUE_DRAINED, |
|
|
|
|
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_PUSH_RETRIES, |
|
|
|
GRPC_STATS_COUNTER_COUNT |
|
|
|
GRPC_STATS_COUNTER_COUNT |
|
|
|
} grpc_stats_counters; |
|
|
|
} grpc_stats_counters; |
|
|
|
extern const char *grpc_stats_counter_name[GRPC_STATS_COUNTER_COUNT]; |
|
|
|
extern const char *grpc_stats_counter_name[GRPC_STATS_COUNTER_COUNT]; |
|
|
@ -128,9 +130,12 @@ typedef enum { |
|
|
|
#define GRPC_STATS_INC_COMBINER_LOCKS_OFFLOADED(exec_ctx) \ |
|
|
|
#define GRPC_STATS_INC_COMBINER_LOCKS_OFFLOADED(exec_ctx) \ |
|
|
|
GRPC_STATS_INC_COUNTER((exec_ctx), \
|
|
|
|
GRPC_STATS_INC_COUNTER((exec_ctx), \
|
|
|
|
GRPC_STATS_COUNTER_COMBINER_LOCKS_OFFLOADED) |
|
|
|
GRPC_STATS_COUNTER_COMBINER_LOCKS_OFFLOADED) |
|
|
|
#define GRPC_STATS_INC_EXECUTOR_SCHEDULED_ITEMS(exec_ctx) \ |
|
|
|
#define GRPC_STATS_INC_EXECUTOR_SCHEDULED_SHORT_ITEMS(exec_ctx) \ |
|
|
|
GRPC_STATS_INC_COUNTER((exec_ctx), \
|
|
|
|
GRPC_STATS_INC_COUNTER((exec_ctx), \
|
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_ITEMS) |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_SHORT_ITEMS) |
|
|
|
|
|
|
|
#define GRPC_STATS_INC_EXECUTOR_SCHEDULED_LONG_ITEMS(exec_ctx) \ |
|
|
|
|
|
|
|
GRPC_STATS_INC_COUNTER((exec_ctx), \
|
|
|
|
|
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_LONG_ITEMS) |
|
|
|
#define GRPC_STATS_INC_EXECUTOR_SCHEDULED_TO_SELF(exec_ctx) \ |
|
|
|
#define GRPC_STATS_INC_EXECUTOR_SCHEDULED_TO_SELF(exec_ctx) \ |
|
|
|
GRPC_STATS_INC_COUNTER((exec_ctx), \
|
|
|
|
GRPC_STATS_INC_COUNTER((exec_ctx), \
|
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_TO_SELF) |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_TO_SELF) |
|
|
@ -139,6 +144,8 @@ typedef enum { |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_WAKEUP_INITIATED) |
|
|
|
GRPC_STATS_COUNTER_EXECUTOR_WAKEUP_INITIATED) |
|
|
|
#define GRPC_STATS_INC_EXECUTOR_QUEUE_DRAINED(exec_ctx) \ |
|
|
|
#define GRPC_STATS_INC_EXECUTOR_QUEUE_DRAINED(exec_ctx) \ |
|
|
|
GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_EXECUTOR_QUEUE_DRAINED) |
|
|
|
GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_EXECUTOR_QUEUE_DRAINED) |
|
|
|
|
|
|
|
#define GRPC_STATS_INC_EXECUTOR_PUSH_RETRIES(exec_ctx) \ |
|
|
|
|
|
|
|
GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_EXECUTOR_PUSH_RETRIES) |
|
|
|
#define GRPC_STATS_INC_TCP_WRITE_SIZE(exec_ctx, value) \ |
|
|
|
#define GRPC_STATS_INC_TCP_WRITE_SIZE(exec_ctx, value) \ |
|
|
|
grpc_stats_inc_tcp_write_size((exec_ctx), (int)(value)) |
|
|
|
grpc_stats_inc_tcp_write_size((exec_ctx), (int)(value)) |
|
|
|
void grpc_stats_inc_tcp_write_size(grpc_exec_ctx *exec_ctx, int x); |
|
|
|
void grpc_stats_inc_tcp_write_size(grpc_exec_ctx *exec_ctx, int x); |
|
|
|