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