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 | 0ff222a | 2017-09-01 09:41:43 -0700 | [diff] [blame] | 36 | GRPC_STATS_COUNTER_POLLSET_KICK, |
| 37 | GRPC_STATS_COUNTER_POLLSET_KICKED_WITHOUT_POLLER, |
| 38 | GRPC_STATS_COUNTER_POLLSET_KICKED_AGAIN, |
| 39 | GRPC_STATS_COUNTER_POLLSET_KICK_WAKEUP_FD, |
| 40 | GRPC_STATS_COUNTER_POLLSET_KICK_WAKEUP_CV, |
| 41 | GRPC_STATS_COUNTER_POLLSET_KICK_OWN_THREAD, |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 42 | GRPC_STATS_COUNTER_HISTOGRAM_SLOW_LOOKUPS, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 43 | GRPC_STATS_COUNTER_SYSCALL_WRITE, |
| 44 | GRPC_STATS_COUNTER_SYSCALL_READ, |
Craig Tiller | 6155df6 | 2017-09-07 13:26:32 -0700 | [diff] [blame] | 45 | GRPC_STATS_COUNTER_TCP_BACKUP_POLLERS_CREATED, |
| 46 | GRPC_STATS_COUNTER_TCP_BACKUP_POLLER_POLLS, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 47 | GRPC_STATS_COUNTER_HTTP2_OP_BATCHES, |
| 48 | GRPC_STATS_COUNTER_HTTP2_OP_CANCEL, |
| 49 | GRPC_STATS_COUNTER_HTTP2_OP_SEND_INITIAL_METADATA, |
| 50 | GRPC_STATS_COUNTER_HTTP2_OP_SEND_MESSAGE, |
| 51 | GRPC_STATS_COUNTER_HTTP2_OP_SEND_TRAILING_METADATA, |
| 52 | GRPC_STATS_COUNTER_HTTP2_OP_RECV_INITIAL_METADATA, |
| 53 | GRPC_STATS_COUNTER_HTTP2_OP_RECV_MESSAGE, |
| 54 | GRPC_STATS_COUNTER_HTTP2_OP_RECV_TRAILING_METADATA, |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 55 | GRPC_STATS_COUNTER_HTTP2_SETTINGS_WRITES, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 56 | GRPC_STATS_COUNTER_HTTP2_PINGS_SENT, |
| 57 | GRPC_STATS_COUNTER_HTTP2_WRITES_BEGUN, |
Craig Tiller | 06a1bae | 2017-09-07 13:31:12 -0700 | [diff] [blame] | 58 | GRPC_STATS_COUNTER_HTTP2_WRITES_OFFLOADED, |
Craig Tiller | 073a88f | 2017-09-08 14:26:22 -0700 | [diff] [blame] | 59 | GRPC_STATS_COUNTER_HTTP2_WRITES_CONTINUED, |
| 60 | GRPC_STATS_COUNTER_HTTP2_PARTIAL_WRITES, |
Craig Tiller | 3ff1fa6 | 2017-09-14 11:07:48 -0700 | [diff] [blame] | 61 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_INITIAL_WRITE, |
| 62 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_START_NEW_STREAM, |
| 63 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_MESSAGE, |
| 64 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_INITIAL_METADATA, |
| 65 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_TRAILING_METADATA, |
| 66 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_RETRY_SEND_PING, |
| 67 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_CONTINUE_PINGS, |
| 68 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_GOAWAY_SENT, |
| 69 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_RST_STREAM, |
| 70 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_CLOSE_FROM_API, |
| 71 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_STREAM_FLOW_CONTROL, |
| 72 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL, |
| 73 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_SETTINGS, |
| 74 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_BDP_ESTIMATOR_PING, |
| 75 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_SETTING, |
| 76 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_UPDATE, |
| 77 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_APPLICATION_PING, |
| 78 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_KEEPALIVE_PING, |
| 79 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL_UNSTALLED, |
| 80 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_PING_RESPONSE, |
| 81 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FORCE_RST_STREAM, |
Craig Tiller | 7862097 | 2017-09-21 11:38:32 -0700 | [diff] [blame] | 82 | GRPC_STATS_COUNTER_HPACK_RECV_INDEXED, |
| 83 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_INCIDX, |
| 84 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_INCIDX_V, |
| 85 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NOTIDX, |
| 86 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NOTIDX_V, |
| 87 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NVRIDX, |
| 88 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NVRIDX_V, |
| 89 | GRPC_STATS_COUNTER_HPACK_RECV_UNCOMPRESSED, |
| 90 | GRPC_STATS_COUNTER_HPACK_RECV_HUFFMAN, |
| 91 | GRPC_STATS_COUNTER_HPACK_RECV_BINARY, |
| 92 | GRPC_STATS_COUNTER_HPACK_RECV_BINARY_BASE64, |
| 93 | GRPC_STATS_COUNTER_HPACK_SEND_INDEXED, |
| 94 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_INCIDX, |
| 95 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_INCIDX_V, |
| 96 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NOTIDX, |
| 97 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NOTIDX_V, |
| 98 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NVRIDX, |
| 99 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NVRIDX_V, |
| 100 | GRPC_STATS_COUNTER_HPACK_SEND_UNCOMPRESSED, |
| 101 | GRPC_STATS_COUNTER_HPACK_SEND_HUFFMAN, |
| 102 | GRPC_STATS_COUNTER_HPACK_SEND_BINARY, |
| 103 | GRPC_STATS_COUNTER_HPACK_SEND_BINARY_BASE64, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 104 | GRPC_STATS_COUNTER_COMBINER_LOCKS_INITIATED, |
| 105 | GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_ITEMS, |
| 106 | GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS, |
| 107 | GRPC_STATS_COUNTER_COMBINER_LOCKS_OFFLOADED, |
Craig Tiller | 07d2fa7 | 2017-09-07 13:13:36 -0700 | [diff] [blame] | 108 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_SHORT_ITEMS, |
| 109 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_LONG_ITEMS, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 110 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_TO_SELF, |
| 111 | GRPC_STATS_COUNTER_EXECUTOR_WAKEUP_INITIATED, |
| 112 | GRPC_STATS_COUNTER_EXECUTOR_QUEUE_DRAINED, |
Craig Tiller | 07d2fa7 | 2017-09-07 13:13:36 -0700 | [diff] [blame] | 113 | GRPC_STATS_COUNTER_EXECUTOR_PUSH_RETRIES, |
Craig Tiller | 561dc32 | 2017-09-05 13:00:46 -0700 | [diff] [blame] | 114 | GRPC_STATS_COUNTER_SERVER_REQUESTED_CALLS, |
| 115 | GRPC_STATS_COUNTER_SERVER_SLOWPATH_REQUESTS_QUEUED, |
Sree Kuchibhotla | 0d0fa06 | 2017-10-03 16:04:42 -0700 | [diff] [blame^] | 116 | GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRYLOCK_FAILURES, |
| 117 | GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRYLOCK_SUCCESSES, |
| 118 | GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRANSIENT_POP_FAILURES, |
Craig Tiller | 2808668 | 2017-07-18 14:22:19 -0700 | [diff] [blame] | 119 | GRPC_STATS_COUNTER_COUNT |
| 120 | } grpc_stats_counters; |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 121 | extern const char *grpc_stats_counter_name[GRPC_STATS_COUNTER_COUNT]; |
Craig Tiller | eda9097 | 2017-09-08 09:52:29 -0700 | [diff] [blame] | 122 | extern const char *grpc_stats_counter_doc[GRPC_STATS_COUNTER_COUNT]; |
Craig Tiller | 33aeaba | 2017-07-20 16:02:24 -0700 | [diff] [blame] | 123 | typedef enum { |
Craig Tiller | 0ff222a | 2017-09-01 09:41:43 -0700 | [diff] [blame] | 124 | GRPC_STATS_HISTOGRAM_CALL_INITIAL_SIZE, |
| 125 | GRPC_STATS_HISTOGRAM_POLL_EVENTS_RETURNED, |
Craig Tiller | 33aeaba | 2017-07-20 16:02:24 -0700 | [diff] [blame] | 126 | GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE, |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 127 | GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE, |
Craig Tiller | 33aeaba | 2017-07-20 16:02:24 -0700 | [diff] [blame] | 128 | GRPC_STATS_HISTOGRAM_TCP_READ_SIZE, |
Craig Tiller | c92f18c | 2017-08-31 16:46:32 -0700 | [diff] [blame] | 129 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER, |
Craig Tiller | eda9097 | 2017-09-08 09:52:29 -0700 | [diff] [blame] | 130 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 131 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE, |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 132 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_INITIAL_METADATA_PER_WRITE, |
| 133 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_PER_WRITE, |
| 134 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_TRAILING_METADATA_PER_WRITE, |
| 135 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_FLOWCTL_PER_WRITE, |
Craig Tiller | 561dc32 | 2017-09-05 13:00:46 -0700 | [diff] [blame] | 136 | GRPC_STATS_HISTOGRAM_SERVER_CQS_CHECKED, |
Craig Tiller | 33aeaba | 2017-07-20 16:02:24 -0700 | [diff] [blame] | 137 | GRPC_STATS_HISTOGRAM_COUNT |
| 138 | } grpc_stats_histograms; |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 139 | extern const char *grpc_stats_histogram_name[GRPC_STATS_HISTOGRAM_COUNT]; |
Craig Tiller | eda9097 | 2017-09-08 09:52:29 -0700 | [diff] [blame] | 140 | extern const char *grpc_stats_histogram_doc[GRPC_STATS_HISTOGRAM_COUNT]; |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 141 | typedef enum { |
Craig Tiller | 0ff222a | 2017-09-01 09:41:43 -0700 | [diff] [blame] | 142 | GRPC_STATS_HISTOGRAM_CALL_INITIAL_SIZE_FIRST_SLOT = 0, |
| 143 | GRPC_STATS_HISTOGRAM_CALL_INITIAL_SIZE_BUCKETS = 64, |
| 144 | GRPC_STATS_HISTOGRAM_POLL_EVENTS_RETURNED_FIRST_SLOT = 64, |
| 145 | GRPC_STATS_HISTOGRAM_POLL_EVENTS_RETURNED_BUCKETS = 128, |
| 146 | GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE_FIRST_SLOT = 192, |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 147 | GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE_BUCKETS = 64, |
Craig Tiller | 0ff222a | 2017-09-01 09:41:43 -0700 | [diff] [blame] | 148 | GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE_FIRST_SLOT = 256, |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 149 | GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE_BUCKETS = 64, |
Craig Tiller | 0ff222a | 2017-09-01 09:41:43 -0700 | [diff] [blame] | 150 | GRPC_STATS_HISTOGRAM_TCP_READ_SIZE_FIRST_SLOT = 320, |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 151 | GRPC_STATS_HISTOGRAM_TCP_READ_SIZE_BUCKETS = 64, |
Craig Tiller | 0ff222a | 2017-09-01 09:41:43 -0700 | [diff] [blame] | 152 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_FIRST_SLOT = 384, |
Craig Tiller | c92f18c | 2017-08-31 16:46:32 -0700 | [diff] [blame] | 153 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_BUCKETS = 64, |
Craig Tiller | 4f5acf7 | 2017-09-08 11:38:41 -0700 | [diff] [blame] | 154 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE_FIRST_SLOT = 448, |
Craig Tiller | eda9097 | 2017-09-08 09:52:29 -0700 | [diff] [blame] | 155 | GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE_BUCKETS = 64, |
Craig Tiller | 0ff222a | 2017-09-01 09:41:43 -0700 | [diff] [blame] | 156 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE_FIRST_SLOT = 512, |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 157 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE_BUCKETS = 64, |
Craig Tiller | 4aac9a6 | 2017-09-11 12:09:03 -0700 | [diff] [blame] | 158 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_INITIAL_METADATA_PER_WRITE_FIRST_SLOT = 576, |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 159 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_INITIAL_METADATA_PER_WRITE_BUCKETS = 64, |
Craig Tiller | 4aac9a6 | 2017-09-11 12:09:03 -0700 | [diff] [blame] | 160 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_PER_WRITE_FIRST_SLOT = 640, |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 161 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_PER_WRITE_BUCKETS = 64, |
Craig Tiller | 4aac9a6 | 2017-09-11 12:09:03 -0700 | [diff] [blame] | 162 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_TRAILING_METADATA_PER_WRITE_FIRST_SLOT = 704, |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 163 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_TRAILING_METADATA_PER_WRITE_BUCKETS = 64, |
Craig Tiller | 4aac9a6 | 2017-09-11 12:09:03 -0700 | [diff] [blame] | 164 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_FLOWCTL_PER_WRITE_FIRST_SLOT = 768, |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 165 | GRPC_STATS_HISTOGRAM_HTTP2_SEND_FLOWCTL_PER_WRITE_BUCKETS = 64, |
Craig Tiller | 2477cf3 | 2017-09-26 12:20:35 -0700 | [diff] [blame] | 166 | GRPC_STATS_HISTOGRAM_SERVER_CQS_CHECKED_FIRST_SLOT = 832, |
Craig Tiller | 561dc32 | 2017-09-05 13:00:46 -0700 | [diff] [blame] | 167 | GRPC_STATS_HISTOGRAM_SERVER_CQS_CHECKED_BUCKETS = 8, |
Craig Tiller | 2477cf3 | 2017-09-26 12:20:35 -0700 | [diff] [blame] | 168 | GRPC_STATS_HISTOGRAM_BUCKETS = 840 |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 169 | } grpc_stats_histogram_constants; |
| 170 | #define GRPC_STATS_INC_CLIENT_CALLS_CREATED(exec_ctx) \ |
| 171 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_CLIENT_CALLS_CREATED) |
| 172 | #define GRPC_STATS_INC_SERVER_CALLS_CREATED(exec_ctx) \ |
| 173 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SERVER_CALLS_CREATED) |
Craig Tiller | f1dc9c3 | 2017-09-13 14:21:27 -0700 | [diff] [blame] | 174 | #define GRPC_STATS_INC_CQS_CREATED(exec_ctx) \ |
| 175 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_CQS_CREATED) |
| 176 | #define GRPC_STATS_INC_CLIENT_CHANNELS_CREATED(exec_ctx) \ |
| 177 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_CLIENT_CHANNELS_CREATED) |
| 178 | #define GRPC_STATS_INC_CLIENT_SUBCHANNELS_CREATED(exec_ctx) \ |
| 179 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 180 | GRPC_STATS_COUNTER_CLIENT_SUBCHANNELS_CREATED) |
| 181 | #define GRPC_STATS_INC_SERVER_CHANNELS_CREATED(exec_ctx) \ |
| 182 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SERVER_CHANNELS_CREATED) |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 183 | #define GRPC_STATS_INC_SYSCALL_POLL(exec_ctx) \ |
| 184 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_POLL) |
| 185 | #define GRPC_STATS_INC_SYSCALL_WAIT(exec_ctx) \ |
| 186 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_WAIT) |
Craig Tiller | 0ff222a | 2017-09-01 09:41:43 -0700 | [diff] [blame] | 187 | #define GRPC_STATS_INC_POLLSET_KICK(exec_ctx) \ |
| 188 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_POLLSET_KICK) |
| 189 | #define GRPC_STATS_INC_POLLSET_KICKED_WITHOUT_POLLER(exec_ctx) \ |
| 190 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 191 | GRPC_STATS_COUNTER_POLLSET_KICKED_WITHOUT_POLLER) |
| 192 | #define GRPC_STATS_INC_POLLSET_KICKED_AGAIN(exec_ctx) \ |
| 193 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_POLLSET_KICKED_AGAIN) |
| 194 | #define GRPC_STATS_INC_POLLSET_KICK_WAKEUP_FD(exec_ctx) \ |
| 195 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_POLLSET_KICK_WAKEUP_FD) |
| 196 | #define GRPC_STATS_INC_POLLSET_KICK_WAKEUP_CV(exec_ctx) \ |
| 197 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_POLLSET_KICK_WAKEUP_CV) |
| 198 | #define GRPC_STATS_INC_POLLSET_KICK_OWN_THREAD(exec_ctx) \ |
| 199 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_POLLSET_KICK_OWN_THREAD) |
Craig Tiller | 640dfe4 | 2017-08-30 13:34:49 -0700 | [diff] [blame] | 200 | #define GRPC_STATS_INC_HISTOGRAM_SLOW_LOOKUPS(exec_ctx) \ |
| 201 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HISTOGRAM_SLOW_LOOKUPS) |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 202 | #define GRPC_STATS_INC_SYSCALL_WRITE(exec_ctx) \ |
| 203 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_WRITE) |
| 204 | #define GRPC_STATS_INC_SYSCALL_READ(exec_ctx) \ |
| 205 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_READ) |
Craig Tiller | 6155df6 | 2017-09-07 13:26:32 -0700 | [diff] [blame] | 206 | #define GRPC_STATS_INC_TCP_BACKUP_POLLERS_CREATED(exec_ctx) \ |
| 207 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 208 | GRPC_STATS_COUNTER_TCP_BACKUP_POLLERS_CREATED) |
| 209 | #define GRPC_STATS_INC_TCP_BACKUP_POLLER_POLLS(exec_ctx) \ |
| 210 | 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] | 211 | #define GRPC_STATS_INC_HTTP2_OP_BATCHES(exec_ctx) \ |
| 212 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_OP_BATCHES) |
| 213 | #define GRPC_STATS_INC_HTTP2_OP_CANCEL(exec_ctx) \ |
| 214 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_OP_CANCEL) |
| 215 | #define GRPC_STATS_INC_HTTP2_OP_SEND_INITIAL_METADATA(exec_ctx) \ |
| 216 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 217 | GRPC_STATS_COUNTER_HTTP2_OP_SEND_INITIAL_METADATA) |
| 218 | #define GRPC_STATS_INC_HTTP2_OP_SEND_MESSAGE(exec_ctx) \ |
| 219 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_OP_SEND_MESSAGE) |
| 220 | #define GRPC_STATS_INC_HTTP2_OP_SEND_TRAILING_METADATA(exec_ctx) \ |
| 221 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 222 | GRPC_STATS_COUNTER_HTTP2_OP_SEND_TRAILING_METADATA) |
| 223 | #define GRPC_STATS_INC_HTTP2_OP_RECV_INITIAL_METADATA(exec_ctx) \ |
| 224 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 225 | GRPC_STATS_COUNTER_HTTP2_OP_RECV_INITIAL_METADATA) |
| 226 | #define GRPC_STATS_INC_HTTP2_OP_RECV_MESSAGE(exec_ctx) \ |
| 227 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_OP_RECV_MESSAGE) |
| 228 | #define GRPC_STATS_INC_HTTP2_OP_RECV_TRAILING_METADATA(exec_ctx) \ |
| 229 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 230 | GRPC_STATS_COUNTER_HTTP2_OP_RECV_TRAILING_METADATA) |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 231 | #define GRPC_STATS_INC_HTTP2_SETTINGS_WRITES(exec_ctx) \ |
| 232 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_SETTINGS_WRITES) |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 233 | #define GRPC_STATS_INC_HTTP2_PINGS_SENT(exec_ctx) \ |
| 234 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_PINGS_SENT) |
| 235 | #define GRPC_STATS_INC_HTTP2_WRITES_BEGUN(exec_ctx) \ |
| 236 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_WRITES_BEGUN) |
Craig Tiller | 06a1bae | 2017-09-07 13:31:12 -0700 | [diff] [blame] | 237 | #define GRPC_STATS_INC_HTTP2_WRITES_OFFLOADED(exec_ctx) \ |
| 238 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_WRITES_OFFLOADED) |
Craig Tiller | 073a88f | 2017-09-08 14:26:22 -0700 | [diff] [blame] | 239 | #define GRPC_STATS_INC_HTTP2_WRITES_CONTINUED(exec_ctx) \ |
| 240 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_WRITES_CONTINUED) |
| 241 | #define GRPC_STATS_INC_HTTP2_PARTIAL_WRITES(exec_ctx) \ |
| 242 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HTTP2_PARTIAL_WRITES) |
Craig Tiller | 3ff1fa6 | 2017-09-14 11:07:48 -0700 | [diff] [blame] | 243 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_INITIAL_WRITE(exec_ctx) \ |
| 244 | GRPC_STATS_INC_COUNTER( \ |
| 245 | (exec_ctx), \ |
| 246 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_INITIAL_WRITE) |
| 247 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_START_NEW_STREAM(exec_ctx) \ |
| 248 | GRPC_STATS_INC_COUNTER( \ |
| 249 | (exec_ctx), \ |
| 250 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_START_NEW_STREAM) |
| 251 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_MESSAGE(exec_ctx) \ |
| 252 | GRPC_STATS_INC_COUNTER( \ |
| 253 | (exec_ctx), GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_MESSAGE) |
| 254 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_INITIAL_METADATA( \ |
| 255 | exec_ctx) \ |
| 256 | GRPC_STATS_INC_COUNTER( \ |
| 257 | (exec_ctx), \ |
| 258 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_INITIAL_METADATA) |
| 259 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_TRAILING_METADATA( \ |
| 260 | exec_ctx) \ |
| 261 | GRPC_STATS_INC_COUNTER( \ |
| 262 | (exec_ctx), \ |
| 263 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_TRAILING_METADATA) |
| 264 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_RETRY_SEND_PING(exec_ctx) \ |
| 265 | GRPC_STATS_INC_COUNTER( \ |
| 266 | (exec_ctx), \ |
| 267 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_RETRY_SEND_PING) |
| 268 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_CONTINUE_PINGS(exec_ctx) \ |
| 269 | GRPC_STATS_INC_COUNTER( \ |
| 270 | (exec_ctx), \ |
| 271 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_CONTINUE_PINGS) |
| 272 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_GOAWAY_SENT(exec_ctx) \ |
| 273 | GRPC_STATS_INC_COUNTER( \ |
| 274 | (exec_ctx), GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_GOAWAY_SENT) |
| 275 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_RST_STREAM(exec_ctx) \ |
| 276 | GRPC_STATS_INC_COUNTER( \ |
| 277 | (exec_ctx), GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_RST_STREAM) |
| 278 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_CLOSE_FROM_API(exec_ctx) \ |
| 279 | GRPC_STATS_INC_COUNTER( \ |
| 280 | (exec_ctx), \ |
| 281 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_CLOSE_FROM_API) |
| 282 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_STREAM_FLOW_CONTROL( \ |
| 283 | exec_ctx) \ |
| 284 | GRPC_STATS_INC_COUNTER( \ |
| 285 | (exec_ctx), \ |
| 286 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_STREAM_FLOW_CONTROL) |
| 287 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL( \ |
| 288 | exec_ctx) \ |
| 289 | GRPC_STATS_INC_COUNTER( \ |
| 290 | (exec_ctx), \ |
| 291 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL) |
| 292 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_SETTINGS(exec_ctx) \ |
| 293 | GRPC_STATS_INC_COUNTER( \ |
| 294 | (exec_ctx), \ |
| 295 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_SETTINGS) |
| 296 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_BDP_ESTIMATOR_PING( \ |
| 297 | exec_ctx) \ |
| 298 | GRPC_STATS_INC_COUNTER( \ |
| 299 | (exec_ctx), \ |
| 300 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_BDP_ESTIMATOR_PING) |
| 301 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_SETTING( \ |
| 302 | exec_ctx) \ |
| 303 | GRPC_STATS_INC_COUNTER( \ |
| 304 | (exec_ctx), \ |
| 305 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_SETTING) |
| 306 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_UPDATE( \ |
| 307 | exec_ctx) \ |
| 308 | GRPC_STATS_INC_COUNTER( \ |
| 309 | (exec_ctx), \ |
| 310 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_UPDATE) |
| 311 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_APPLICATION_PING(exec_ctx) \ |
| 312 | GRPC_STATS_INC_COUNTER( \ |
| 313 | (exec_ctx), \ |
| 314 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_APPLICATION_PING) |
| 315 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_KEEPALIVE_PING(exec_ctx) \ |
| 316 | GRPC_STATS_INC_COUNTER( \ |
| 317 | (exec_ctx), \ |
| 318 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_KEEPALIVE_PING) |
| 319 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL_UNSTALLED( \ |
| 320 | exec_ctx) \ |
| 321 | GRPC_STATS_INC_COUNTER( \ |
| 322 | (exec_ctx), \ |
| 323 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL_UNSTALLED) |
| 324 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_PING_RESPONSE(exec_ctx) \ |
| 325 | GRPC_STATS_INC_COUNTER( \ |
| 326 | (exec_ctx), \ |
| 327 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_PING_RESPONSE) |
| 328 | #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_FORCE_RST_STREAM(exec_ctx) \ |
| 329 | GRPC_STATS_INC_COUNTER( \ |
| 330 | (exec_ctx), \ |
| 331 | GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FORCE_RST_STREAM) |
Craig Tiller | 7862097 | 2017-09-21 11:38:32 -0700 | [diff] [blame] | 332 | #define GRPC_STATS_INC_HPACK_RECV_INDEXED(exec_ctx) \ |
| 333 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HPACK_RECV_INDEXED) |
| 334 | #define GRPC_STATS_INC_HPACK_RECV_LITHDR_INCIDX(exec_ctx) \ |
| 335 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 336 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_INCIDX) |
| 337 | #define GRPC_STATS_INC_HPACK_RECV_LITHDR_INCIDX_V(exec_ctx) \ |
| 338 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 339 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_INCIDX_V) |
| 340 | #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NOTIDX(exec_ctx) \ |
| 341 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 342 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NOTIDX) |
| 343 | #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NOTIDX_V(exec_ctx) \ |
| 344 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 345 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NOTIDX_V) |
| 346 | #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NVRIDX(exec_ctx) \ |
| 347 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 348 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NVRIDX) |
| 349 | #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NVRIDX_V(exec_ctx) \ |
| 350 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 351 | GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NVRIDX_V) |
| 352 | #define GRPC_STATS_INC_HPACK_RECV_UNCOMPRESSED(exec_ctx) \ |
| 353 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HPACK_RECV_UNCOMPRESSED) |
| 354 | #define GRPC_STATS_INC_HPACK_RECV_HUFFMAN(exec_ctx) \ |
| 355 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HPACK_RECV_HUFFMAN) |
| 356 | #define GRPC_STATS_INC_HPACK_RECV_BINARY(exec_ctx) \ |
| 357 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HPACK_RECV_BINARY) |
| 358 | #define GRPC_STATS_INC_HPACK_RECV_BINARY_BASE64(exec_ctx) \ |
| 359 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 360 | GRPC_STATS_COUNTER_HPACK_RECV_BINARY_BASE64) |
| 361 | #define GRPC_STATS_INC_HPACK_SEND_INDEXED(exec_ctx) \ |
| 362 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HPACK_SEND_INDEXED) |
| 363 | #define GRPC_STATS_INC_HPACK_SEND_LITHDR_INCIDX(exec_ctx) \ |
| 364 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 365 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_INCIDX) |
| 366 | #define GRPC_STATS_INC_HPACK_SEND_LITHDR_INCIDX_V(exec_ctx) \ |
| 367 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 368 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_INCIDX_V) |
| 369 | #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NOTIDX(exec_ctx) \ |
| 370 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 371 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NOTIDX) |
| 372 | #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NOTIDX_V(exec_ctx) \ |
| 373 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 374 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NOTIDX_V) |
| 375 | #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NVRIDX(exec_ctx) \ |
| 376 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 377 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NVRIDX) |
| 378 | #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NVRIDX_V(exec_ctx) \ |
| 379 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 380 | GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NVRIDX_V) |
| 381 | #define GRPC_STATS_INC_HPACK_SEND_UNCOMPRESSED(exec_ctx) \ |
| 382 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HPACK_SEND_UNCOMPRESSED) |
| 383 | #define GRPC_STATS_INC_HPACK_SEND_HUFFMAN(exec_ctx) \ |
| 384 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HPACK_SEND_HUFFMAN) |
| 385 | #define GRPC_STATS_INC_HPACK_SEND_BINARY(exec_ctx) \ |
| 386 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_HPACK_SEND_BINARY) |
| 387 | #define GRPC_STATS_INC_HPACK_SEND_BINARY_BASE64(exec_ctx) \ |
| 388 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 389 | GRPC_STATS_COUNTER_HPACK_SEND_BINARY_BASE64) |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 390 | #define GRPC_STATS_INC_COMBINER_LOCKS_INITIATED(exec_ctx) \ |
| 391 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 392 | GRPC_STATS_COUNTER_COMBINER_LOCKS_INITIATED) |
| 393 | #define GRPC_STATS_INC_COMBINER_LOCKS_SCHEDULED_ITEMS(exec_ctx) \ |
| 394 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 395 | GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_ITEMS) |
| 396 | #define GRPC_STATS_INC_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS(exec_ctx) \ |
| 397 | GRPC_STATS_INC_COUNTER( \ |
| 398 | (exec_ctx), GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS) |
| 399 | #define GRPC_STATS_INC_COMBINER_LOCKS_OFFLOADED(exec_ctx) \ |
| 400 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 401 | GRPC_STATS_COUNTER_COMBINER_LOCKS_OFFLOADED) |
Craig Tiller | 07d2fa7 | 2017-09-07 13:13:36 -0700 | [diff] [blame] | 402 | #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_SHORT_ITEMS(exec_ctx) \ |
| 403 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 404 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_SHORT_ITEMS) |
| 405 | #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_LONG_ITEMS(exec_ctx) \ |
| 406 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 407 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_LONG_ITEMS) |
Craig Tiller | 57bb9a9 | 2017-08-31 16:44:15 -0700 | [diff] [blame] | 408 | #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_TO_SELF(exec_ctx) \ |
| 409 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 410 | GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_TO_SELF) |
| 411 | #define GRPC_STATS_INC_EXECUTOR_WAKEUP_INITIATED(exec_ctx) \ |
| 412 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 413 | GRPC_STATS_COUNTER_EXECUTOR_WAKEUP_INITIATED) |
| 414 | #define GRPC_STATS_INC_EXECUTOR_QUEUE_DRAINED(exec_ctx) \ |
| 415 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_EXECUTOR_QUEUE_DRAINED) |
Craig Tiller | 07d2fa7 | 2017-09-07 13:13:36 -0700 | [diff] [blame] | 416 | #define GRPC_STATS_INC_EXECUTOR_PUSH_RETRIES(exec_ctx) \ |
| 417 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_EXECUTOR_PUSH_RETRIES) |
Craig Tiller | 561dc32 | 2017-09-05 13:00:46 -0700 | [diff] [blame] | 418 | #define GRPC_STATS_INC_SERVER_REQUESTED_CALLS(exec_ctx) \ |
| 419 | GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SERVER_REQUESTED_CALLS) |
| 420 | #define GRPC_STATS_INC_SERVER_SLOWPATH_REQUESTS_QUEUED(exec_ctx) \ |
| 421 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 422 | GRPC_STATS_COUNTER_SERVER_SLOWPATH_REQUESTS_QUEUED) |
Sree Kuchibhotla | 0d0fa06 | 2017-10-03 16:04:42 -0700 | [diff] [blame^] | 423 | #define GRPC_STATS_INC_CQ_EV_QUEUE_TRYLOCK_FAILURES(exec_ctx) \ |
| 424 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 425 | GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRYLOCK_FAILURES) |
| 426 | #define GRPC_STATS_INC_CQ_EV_QUEUE_TRYLOCK_SUCCESSES(exec_ctx) \ |
| 427 | GRPC_STATS_INC_COUNTER((exec_ctx), \ |
| 428 | GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRYLOCK_SUCCESSES) |
| 429 | #define GRPC_STATS_INC_CQ_EV_QUEUE_TRANSIENT_POP_FAILURES(exec_ctx) \ |
| 430 | GRPC_STATS_INC_COUNTER( \ |
| 431 | (exec_ctx), GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRANSIENT_POP_FAILURES) |
Craig Tiller | f0ba70a | 2017-09-05 11:47:14 -0700 | [diff] [blame] | 432 | #define GRPC_STATS_INC_CALL_INITIAL_SIZE(exec_ctx, value) \ |
| 433 | grpc_stats_inc_call_initial_size((exec_ctx), (int)(value)) |
| 434 | void grpc_stats_inc_call_initial_size(grpc_exec_ctx *exec_ctx, int x); |
| 435 | #define GRPC_STATS_INC_POLL_EVENTS_RETURNED(exec_ctx, value) \ |
| 436 | grpc_stats_inc_poll_events_returned((exec_ctx), (int)(value)) |
| 437 | void grpc_stats_inc_poll_events_returned(grpc_exec_ctx *exec_ctx, int x); |
Craig Tiller | 97ec5eb | 2017-09-01 12:57:36 -0700 | [diff] [blame] | 438 | #define GRPC_STATS_INC_TCP_WRITE_SIZE(exec_ctx, value) \ |
Craig Tiller | 56a8484 | 2017-09-01 16:36:52 -0700 | [diff] [blame] | 439 | grpc_stats_inc_tcp_write_size((exec_ctx), (int)(value)) |
| 440 | 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] | 441 | #define GRPC_STATS_INC_TCP_WRITE_IOV_SIZE(exec_ctx, value) \ |
Craig Tiller | 56a8484 | 2017-09-01 16:36:52 -0700 | [diff] [blame] | 442 | grpc_stats_inc_tcp_write_iov_size((exec_ctx), (int)(value)) |
| 443 | 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] | 444 | #define GRPC_STATS_INC_TCP_READ_SIZE(exec_ctx, value) \ |
Craig Tiller | 56a8484 | 2017-09-01 16:36:52 -0700 | [diff] [blame] | 445 | grpc_stats_inc_tcp_read_size((exec_ctx), (int)(value)) |
| 446 | void grpc_stats_inc_tcp_read_size(grpc_exec_ctx *exec_ctx, int x); |
| 447 | #define GRPC_STATS_INC_TCP_READ_OFFER(exec_ctx, value) \ |
| 448 | grpc_stats_inc_tcp_read_offer((exec_ctx), (int)(value)) |
| 449 | 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] | 450 | #define GRPC_STATS_INC_TCP_READ_OFFER_IOV_SIZE(exec_ctx, value) \ |
| 451 | grpc_stats_inc_tcp_read_offer_iov_size((exec_ctx), (int)(value)) |
| 452 | 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] | 453 | #define GRPC_STATS_INC_HTTP2_SEND_MESSAGE_SIZE(exec_ctx, value) \ |
| 454 | grpc_stats_inc_http2_send_message_size((exec_ctx), (int)(value)) |
| 455 | 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] | 456 | #define GRPC_STATS_INC_HTTP2_SEND_INITIAL_METADATA_PER_WRITE(exec_ctx, value) \ |
| 457 | grpc_stats_inc_http2_send_initial_metadata_per_write((exec_ctx), (int)(value)) |
| 458 | void grpc_stats_inc_http2_send_initial_metadata_per_write( |
| 459 | grpc_exec_ctx *exec_ctx, int x); |
| 460 | #define GRPC_STATS_INC_HTTP2_SEND_MESSAGE_PER_WRITE(exec_ctx, value) \ |
| 461 | grpc_stats_inc_http2_send_message_per_write((exec_ctx), (int)(value)) |
| 462 | 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] | 463 | int x); |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 464 | #define GRPC_STATS_INC_HTTP2_SEND_TRAILING_METADATA_PER_WRITE(exec_ctx, value) \ |
| 465 | grpc_stats_inc_http2_send_trailing_metadata_per_write((exec_ctx), \ |
| 466 | (int)(value)) |
| 467 | void grpc_stats_inc_http2_send_trailing_metadata_per_write( |
| 468 | grpc_exec_ctx *exec_ctx, int x); |
| 469 | #define GRPC_STATS_INC_HTTP2_SEND_FLOWCTL_PER_WRITE(exec_ctx, value) \ |
| 470 | grpc_stats_inc_http2_send_flowctl_per_write((exec_ctx), (int)(value)) |
| 471 | void grpc_stats_inc_http2_send_flowctl_per_write(grpc_exec_ctx *exec_ctx, |
| 472 | int x); |
Craig Tiller | 561dc32 | 2017-09-05 13:00:46 -0700 | [diff] [blame] | 473 | #define GRPC_STATS_INC_SERVER_CQS_CHECKED(exec_ctx, value) \ |
| 474 | grpc_stats_inc_server_cqs_checked((exec_ctx), (int)(value)) |
| 475 | void grpc_stats_inc_server_cqs_checked(grpc_exec_ctx *exec_ctx, int x); |
Craig Tiller | 2477cf3 | 2017-09-26 12:20:35 -0700 | [diff] [blame] | 476 | extern const int grpc_stats_histo_buckets[13]; |
| 477 | extern const int grpc_stats_histo_start[13]; |
| 478 | extern const int *const grpc_stats_histo_bucket_boundaries[13]; |
| 479 | extern void (*const grpc_stats_inc_histogram[13])(grpc_exec_ctx *exec_ctx, |
Craig Tiller | 50fec6a | 2017-09-08 15:21:00 -0700 | [diff] [blame] | 480 | int x); |
Craig Tiller | 2808668 | 2017-07-18 14:22:19 -0700 | [diff] [blame] | 481 | |
| 482 | #endif /* GRPC_CORE_LIB_DEBUG_STATS_DATA_H */ |