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