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