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