Craig Tiller | 2808668 | 2017-07-18 14:22:19 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 gRPC authors. |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 3 | * |
Craig Tiller | 2808668 | 2017-07-18 14:22:19 -0700 | [diff] [blame] | 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 |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 7 | * |
Craig Tiller | 2808668 | 2017-07-18 14:22:19 -0700 | [diff] [blame] | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 9 | * |
Craig Tiller | 2808668 | 2017-07-18 14:22:19 -0700 | [diff] [blame] | 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 | |
| 21 | #ifndef GRPC_CORE_LIB_DEBUG_STATS_DATA_H |
| 22 | #define GRPC_CORE_LIB_DEBUG_STATS_DATA_H |
| 23 | |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 24 | #include <inttypes.h> |
Craig Tiller | 97ec5eb | 2017-09-01 12:57:36 -0700 | [diff] [blame] | 25 | #include "src/core/lib/iomgr/exec_ctx.h" |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 26 | |
Craig Tiller | 2808668 | 2017-07-18 14:22:19 -0700 | [diff] [blame] | 27 | typedef enum { |
| 28 | GRPC_STATS_COUNTER_CLIENT_CALLS_CREATED, |
| 29 | GRPC_STATS_COUNTER_SERVER_CALLS_CREATED, |
Craig Tiller | f1dc9c3 | 2017-09-13 14:21:27 -0700 | [diff] [blame^] | 30 | GRPC_STATS_COUNTER_CQS_CREATED, |
| 31 | GRPC_STATS_COUNTER_CLIENT_CHANNELS_CREATED, |
| 32 | GRPC_STATS_COUNTER_CLIENT_SUBCHANNELS_CREATED, |
| 33 | GRPC_STATS_COUNTER_SERVER_CHANNELS_CREATED, |
Craig Tiller | b4bb1cd | 2017-07-20 14:18:17 -0700 | [diff] [blame] | 34 | GRPC_STATS_COUNTER_SYSCALL_POLL, |
| 35 | GRPC_STATS_COUNTER_SYSCALL_WAIT, |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 36 | GRPC_STATS_COUNTER_HISTOGRAM_SLOW_LOOKUPS, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 37 | GRPC_STATS_COUNTER_SYSCALL_WRITE, |
| 38 | GRPC_STATS_COUNTER_SYSCALL_READ, |
Craig Tiller | 6155df6 | 2017-09-07 13:26:32 -0700 | [diff] [blame] | 39 | GRPC_STATS_COUNTER_TCP_BACKUP_POLLERS_CREATED, |
| 40 | GRPC_STATS_COUNTER_TCP_BACKUP_POLLER_POLLS, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 41 | GRPC_STATS_COUNTER_HTTP2_OP_BATCHES, |
| 42 | GRPC_STATS_COUNTER_HTTP2_OP_CANCEL, |
| 43 | GRPC_STATS_COUNTER_HTTP2_OP_SEND_INITIAL_METADATA, |
| 44 | GRPC_STATS_COUNTER_HTTP2_OP_SEND_MESSAGE, |
| 45 | GRPC_STATS_COUNTER_HTTP2_OP_SEND_TRAILING_METADATA, |
| 46 | GRPC_STATS_COUNTER_HTTP2_OP_RECV_INITIAL_METADATA, |
| 47 | GRPC_STATS_COUNTER_HTTP2_OP_RECV_MESSAGE, |
| 48 | GRPC_STATS_COUNTER_HTTP2_OP_RECV_TRAILING_METADATA, |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 49 | GRPC_STATS_COUNTER_HTTP2_SETTINGS_WRITES, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 50 | GRPC_STATS_COUNTER_HTTP2_PINGS_SENT, |
| 51 | GRPC_STATS_COUNTER_HTTP2_WRITES_BEGUN, |
Craig Tiller | 06a1bae | 2017-09-07 13:31:12 -0700 | [diff] [blame] | 52 | GRPC_STATS_COUNTER_HTTP2_WRITES_OFFLOADED, |
Craig Tiller | 073a88f | 2017-09-08 14:26:22 -0700 | [diff] [blame] | 53 | GRPC_STATS_COUNTER_HTTP2_WRITES_CONTINUED, |
| 54 | GRPC_STATS_COUNTER_HTTP2_PARTIAL_WRITES, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 55 | GRPC_STATS_COUNTER_COMBINER_LOCKS_INITIATED, |
| 56 | GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_ITEMS, |
| 57 | GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS, |
| 58 | GRPC_STATS_COUNTER_COMBINER_LOCKS_OFFLOADED, |
Craig Tiller | 07d2fa7 | 2017-09-07 13:13:36 -0700 | [diff] [blame] | 59 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_SHORT_ITEMS, |
| 60 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_LONG_ITEMS, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 61 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_TO_SELF, |
| 62 | GRPC_STATS_COUNTER_EXECUTOR_WAKEUP_INITIATED, |
| 63 | GRPC_STATS_COUNTER_EXECUTOR_QUEUE_DRAINED, |
Craig Tiller | 07d2fa7 | 2017-09-07 13:13:36 -0700 | [diff] [blame] | 64 | GRPC_STATS_COUNTER_EXECUTOR_PUSH_RETRIES, |
Craig Tiller | 2808668 | 2017-07-18 14:22:19 -0700 | [diff] [blame] | 65 | GRPC_STATS_COUNTER_COUNT |
| 66 | } grpc_stats_counters; |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 67 | extern const char *grpc_stats_counter_name[GRPC_STATS_COUNTER_COUNT]; |
Craig Tiller | eda9097 | 2017-09-08 09:52:29 -0700 | [diff] [blame] | 68 | extern const char *grpc_stats_counter_doc[GRPC_STATS_COUNTER_COUNT]; |
Craig Tiller | 33aeaba | 2017-07-20 16:02:24 -0700 | [diff] [blame] | 69 | typedef enum { |
| 70 | GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE, |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 71 | GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE, |
Craig Tiller | 33aeaba | 2017-07-20 16:02:24 -0700 | [diff] [blame] | 72 | GRPC_STATS_HISTOGRAM_TCP_READ_SIZE, |
Craig Tiller | c92f18c | 2017-08-31 16:46:32 -0700 | [diff] [blame] | 73 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER, |
Craig Tiller | eda9097 | 2017-09-08 09:52:29 -0700 | [diff] [blame] | 74 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 75 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE, |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 76 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_INITIAL_METADATA_PER_WRITE, |
| 77 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_PER_WRITE, |
| 78 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_TRAILING_METADATA_PER_WRITE, |
| 79 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_FLOWCTL_PER_WRITE, |
Craig Tiller | 33aeaba | 2017-07-20 16:02:24 -0700 | [diff] [blame] | 80 | GRPC_STATS_HISTOGRAM_COUNT |
| 81 | } grpc_stats_histograms; |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 82 | extern const char *grpc_stats_histogram_name[GRPC_STATS_HISTOGRAM_COUNT]; |
Craig Tiller | eda9097 | 2017-09-08 09:52:29 -0700 | [diff] [blame] | 83 | extern const char *grpc_stats_histogram_doc[GRPC_STATS_HISTOGRAM_COUNT]; |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 84 | typedef enum { |
| 85 | GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE_FIRST_SLOT = 0, |
| 86 | GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE_BUCKETS = 64, |
| 87 | GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE_FIRST_SLOT = 64, |
| 88 | GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE_BUCKETS = 64, |
| 89 | GRPC_STATS_HISTOGRAM_TCP_READ_SIZE_FIRST_SLOT = 128, |
| 90 | GRPC_STATS_HISTOGRAM_TCP_READ_SIZE_BUCKETS = 64, |
Craig Tiller | c92f18c | 2017-08-31 16:46:32 -0700 | [diff] [blame] | 91 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_FIRST_SLOT = 192, |
| 92 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_BUCKETS = 64, |
Craig Tiller | eda9097 | 2017-09-08 09:52:29 -0700 | [diff] [blame] | 93 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE_FIRST_SLOT = 256, |
| 94 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE_BUCKETS = 64, |
Craig Tiller | c92f18c | 2017-08-31 16:46:32 -0700 | [diff] [blame] | 95 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE_FIRST_SLOT = 320, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 96 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE_BUCKETS = 64, |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 97 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_INITIAL_METADATA_PER_WRITE_FIRST_SLOT = 384, |
| 98 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_INITIAL_METADATA_PER_WRITE_BUCKETS = 64, |
| 99 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_PER_WRITE_FIRST_SLOT = 448, |
| 100 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_PER_WRITE_BUCKETS = 64, |
| 101 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_TRAILING_METADATA_PER_WRITE_FIRST_SLOT = 512, |
| 102 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_TRAILING_METADATA_PER_WRITE_BUCKETS = 64, |
| 103 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_FLOWCTL_PER_WRITE_FIRST_SLOT = 576, |
| 104 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_FLOWCTL_PER_WRITE_BUCKETS = 64, |
| 105 | GRPC_STATS_HISTOGRAM_BUCKETS = 640 |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 106 | } grpc_stats_histogram_constants; |
| 107 | #define GRPC_STATS_INC_CLIENT_CALLS_CREATED(exec_ctx) \ |
| 108 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_CLIENT_CALLS_CREATED) |
| 109 | #define GRPC_STATS_INC_SERVER_CALLS_CREATED(exec_ctx) \ |
| 110 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SERVER_CALLS_CREATED) |
Craig Tiller | f1dc9c3 | 2017-09-13 14:21:27 -0700 | [diff] [blame^] | 111 | #define GRPC_STATS_INC_CQS_CREATED(exec_ctx) \ |
| 112 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_CQS_CREATED) |
| 113 | #define GRPC_STATS_INC_CLIENT_CHANNELS_CREATED(exec_ctx) \ |
| 114 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_CLIENT_CHANNELS_CREATED) |
| 115 | #define GRPC_STATS_INC_CLIENT_SUBCHANNELS_CREATED(exec_ctx) \ |
| 116 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 117 | GRPC_STATS_COUNTER_CLIENT_SUBCHANNELS_CREATED) |
| 118 | #define GRPC_STATS_INC_SERVER_CHANNELS_CREATED(exec_ctx) \ |
| 119 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SERVER_CHANNELS_CREATED) |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 120 | #define GRPC_STATS_INC_SYSCALL_POLL(exec_ctx) \ |
| 121 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_POLL) |
| 122 | #define GRPC_STATS_INC_SYSCALL_WAIT(exec_ctx) \ |
| 123 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_WAIT) |
| 124 | #define GRPC_STATS_INC_HISTOGRAM_SLOW_LOOKUPS(exec_ctx) \ |
| 125 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HISTOGRAM_SLOW_LOOKUPS) |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 126 | #define GRPC_STATS_INC_SYSCALL_WRITE(exec_ctx) \ |
| 127 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_WRITE) |
| 128 | #define GRPC_STATS_INC_SYSCALL_READ(exec_ctx) \ |
| 129 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_READ) |
Craig Tiller | 6155df6 | 2017-09-07 13:26:32 -0700 | [diff] [blame] | 130 | #define GRPC_STATS_INC_TCP_BACKUP_POLLERS_CREATED(exec_ctx) \ |
| 131 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 132 | GRPC_STATS_COUNTER_TCP_BACKUP_POLLERS_CREATED) |
| 133 | #define GRPC_STATS_INC_TCP_BACKUP_POLLER_POLLS(exec_ctx) \ |
| 134 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_TCP_BACKUP_POLLER_POLLS) |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 135 | #define GRPC_STATS_INC_HTTP2_OP_BATCHES(exec_ctx) \ |
| 136 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_OP_BATCHES) |
| 137 | #define GRPC_STATS_INC_HTTP2_OP_CANCEL(exec_ctx) \ |
| 138 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_OP_CANCEL) |
| 139 | #define GRPC_STATS_INC_HTTP2_OP_SEND_INITIAL_METADATA(exec_ctx) \ |
| 140 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 141 | GRPC_STATS_COUNTER_HTTP2_OP_SEND_INITIAL_METADATA) |
| 142 | #define GRPC_STATS_INC_HTTP2_OP_SEND_MESSAGE(exec_ctx) \ |
| 143 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_OP_SEND_MESSAGE) |
| 144 | #define GRPC_STATS_INC_HTTP2_OP_SEND_TRAILING_METADATA(exec_ctx) \ |
| 145 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 146 | GRPC_STATS_COUNTER_HTTP2_OP_SEND_TRAILING_METADATA) |
| 147 | #define GRPC_STATS_INC_HTTP2_OP_RECV_INITIAL_METADATA(exec_ctx) \ |
| 148 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 149 | GRPC_STATS_COUNTER_HTTP2_OP_RECV_INITIAL_METADATA) |
| 150 | #define GRPC_STATS_INC_HTTP2_OP_RECV_MESSAGE(exec_ctx) \ |
| 151 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_OP_RECV_MESSAGE) |
| 152 | #define GRPC_STATS_INC_HTTP2_OP_RECV_TRAILING_METADATA(exec_ctx) \ |
| 153 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 154 | GRPC_STATS_COUNTER_HTTP2_OP_RECV_TRAILING_METADATA) |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 155 | #define GRPC_STATS_INC_HTTP2_SETTINGS_WRITES(exec_ctx) \ |
| 156 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_SETTINGS_WRITES) |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 157 | #define GRPC_STATS_INC_HTTP2_PINGS_SENT(exec_ctx) \ |
| 158 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_PINGS_SENT) |
| 159 | #define GRPC_STATS_INC_HTTP2_WRITES_BEGUN(exec_ctx) \ |
| 160 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_WRITES_BEGUN) |
Craig Tiller | 06a1bae | 2017-09-07 13:31:12 -0700 | [diff] [blame] | 161 | #define GRPC_STATS_INC_HTTP2_WRITES_OFFLOADED(exec_ctx) \ |
| 162 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_WRITES_OFFLOADED) |
Craig Tiller | 073a88f | 2017-09-08 14:26:22 -0700 | [diff] [blame] | 163 | #define GRPC_STATS_INC_HTTP2_WRITES_CONTINUED(exec_ctx) \ |
| 164 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_WRITES_CONTINUED) |
| 165 | #define GRPC_STATS_INC_HTTP2_PARTIAL_WRITES(exec_ctx) \ |
| 166 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_PARTIAL_WRITES) |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 167 | #define GRPC_STATS_INC_COMBINER_LOCKS_INITIATED(exec_ctx) \ |
| 168 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 169 | GRPC_STATS_COUNTER_COMBINER_LOCKS_INITIATED) |
| 170 | #define GRPC_STATS_INC_COMBINER_LOCKS_SCHEDULED_ITEMS(exec_ctx) \ |
| 171 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 172 | GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_ITEMS) |
| 173 | #define GRPC_STATS_INC_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS(exec_ctx) \ |
| 174 | GRPC_STATS_INC_COUNTER( \ |
| 175 | (exec_ctx), GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS) |
| 176 | #define GRPC_STATS_INC_COMBINER_LOCKS_OFFLOADED(exec_ctx) \ |
| 177 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 178 | GRPC_STATS_COUNTER_COMBINER_LOCKS_OFFLOADED) |
Craig Tiller | 07d2fa7 | 2017-09-07 13:13:36 -0700 | [diff] [blame] | 179 | #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_SHORT_ITEMS(exec_ctx) \ |
| 180 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 181 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_SHORT_ITEMS) |
| 182 | #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_LONG_ITEMS(exec_ctx) \ |
| 183 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 184 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_LONG_ITEMS) |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 185 | #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_TO_SELF(exec_ctx) \ |
| 186 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 187 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_TO_SELF) |
| 188 | #define GRPC_STATS_INC_EXECUTOR_WAKEUP_INITIATED(exec_ctx) \ |
| 189 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 190 | GRPC_STATS_COUNTER_EXECUTOR_WAKEUP_INITIATED) |
| 191 | #define GRPC_STATS_INC_EXECUTOR_QUEUE_DRAINED(exec_ctx) \ |
| 192 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_EXECUTOR_QUEUE_DRAINED) |
Craig Tiller | 07d2fa7 | 2017-09-07 13:13:36 -0700 | [diff] [blame] | 193 | #define GRPC_STATS_INC_EXECUTOR_PUSH_RETRIES(exec_ctx) \ |
| 194 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_EXECUTOR_PUSH_RETRIES) |
Craig Tiller | 97ec5eb | 2017-09-01 12:57:36 -0700 | [diff] [blame] | 195 | #define GRPC_STATS_INC_TCP_WRITE_SIZE(exec_ctx, value) \ |
Craig Tiller | 56a8484 | 2017-09-01 16:36:52 -0700 | [diff] [blame] | 196 | grpc_stats_inc_tcp_write_size((exec_ctx), (int)(value)) |
| 197 | void grpc_stats_inc_tcp_write_size(grpc_exec_ctx *exec_ctx, int x); |
Craig Tiller | 97ec5eb | 2017-09-01 12:57:36 -0700 | [diff] [blame] | 198 | #define GRPC_STATS_INC_TCP_WRITE_IOV_SIZE(exec_ctx, value) \ |
Craig Tiller | 56a8484 | 2017-09-01 16:36:52 -0700 | [diff] [blame] | 199 | grpc_stats_inc_tcp_write_iov_size((exec_ctx), (int)(value)) |
| 200 | void grpc_stats_inc_tcp_write_iov_size(grpc_exec_ctx *exec_ctx, int x); |
Craig Tiller | 97ec5eb | 2017-09-01 12:57:36 -0700 | [diff] [blame] | 201 | #define GRPC_STATS_INC_TCP_READ_SIZE(exec_ctx, value) \ |
Craig Tiller | 56a8484 | 2017-09-01 16:36:52 -0700 | [diff] [blame] | 202 | grpc_stats_inc_tcp_read_size((exec_ctx), (int)(value)) |
| 203 | void grpc_stats_inc_tcp_read_size(grpc_exec_ctx *exec_ctx, int x); |
| 204 | #define GRPC_STATS_INC_TCP_READ_OFFER(exec_ctx, value) \ |
| 205 | grpc_stats_inc_tcp_read_offer((exec_ctx), (int)(value)) |
| 206 | void grpc_stats_inc_tcp_read_offer(grpc_exec_ctx *exec_ctx, int x); |
Craig Tiller | eda9097 | 2017-09-08 09:52:29 -0700 | [diff] [blame] | 207 | #define GRPC_STATS_INC_TCP_READ_OFFER_IOV_SIZE(exec_ctx, value) \ |
| 208 | grpc_stats_inc_tcp_read_offer_iov_size((exec_ctx), (int)(value)) |
| 209 | void grpc_stats_inc_tcp_read_offer_iov_size(grpc_exec_ctx *exec_ctx, int x); |
Craig Tiller | 56a8484 | 2017-09-01 16:36:52 -0700 | [diff] [blame] | 210 | #define GRPC_STATS_INC_HTTP2_SEND_MESSAGE_SIZE(exec_ctx, value) \ |
| 211 | grpc_stats_inc_http2_send_message_size((exec_ctx), (int)(value)) |
| 212 | void grpc_stats_inc_http2_send_message_size(grpc_exec_ctx *exec_ctx, int x); |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 213 | #define GRPC_STATS_INC_HTTP2_SEND_INITIAL_METADATA_PER_WRITE(exec_ctx, value) \ |
| 214 | grpc_stats_inc_http2_send_initial_metadata_per_write((exec_ctx), (int)(value)) |
| 215 | void grpc_stats_inc_http2_send_initial_metadata_per_write( |
| 216 | grpc_exec_ctx *exec_ctx, int x); |
| 217 | #define GRPC_STATS_INC_HTTP2_SEND_MESSAGE_PER_WRITE(exec_ctx, value) \ |
| 218 | grpc_stats_inc_http2_send_message_per_write((exec_ctx), (int)(value)) |
| 219 | void grpc_stats_inc_http2_send_message_per_write(grpc_exec_ctx *exec_ctx, |
Craig Tiller | 56a8484 | 2017-09-01 16:36:52 -0700 | [diff] [blame] | 220 | int x); |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 221 | #define GRPC_STATS_INC_HTTP2_SEND_TRAILING_METADATA_PER_WRITE(exec_ctx, value) \ |
| 222 | grpc_stats_inc_http2_send_trailing_metadata_per_write((exec_ctx), \ |
| 223 | (int)(value)) |
| 224 | void grpc_stats_inc_http2_send_trailing_metadata_per_write( |
| 225 | grpc_exec_ctx *exec_ctx, int x); |
| 226 | #define GRPC_STATS_INC_HTTP2_SEND_FLOWCTL_PER_WRITE(exec_ctx, value) \ |
| 227 | grpc_stats_inc_http2_send_flowctl_per_write((exec_ctx), (int)(value)) |
| 228 | void grpc_stats_inc_http2_send_flowctl_per_write(grpc_exec_ctx *exec_ctx, |
| 229 | int x); |
| 230 | extern const int grpc_stats_histo_buckets[10]; |
| 231 | extern const int grpc_stats_histo_start[10]; |
| 232 | extern const int *const grpc_stats_histo_bucket_boundaries[10]; |
| 233 | extern void (*const grpc_stats_inc_histogram[10])(grpc_exec_ctx *exec_ctx, |
| 234 | int x); |
Craig Tiller | 2808668 | 2017-07-18 14:22:19 -0700 | [diff] [blame] | 235 | |
| 236 | #endif /* GRPC_CORE_LIB_DEBUG_STATS_DATA_H */ |