grpc 1.49.0.pre1-x86_64-linux → 1.50.0.pre1-x86_64-linux

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grpc might be problematic. Click here for more details.

Files changed (277) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +54 -153
  3. data/include/grpc/event_engine/endpoint_config.h +11 -5
  4. data/include/grpc/event_engine/event_engine.h +1 -1
  5. data/include/grpc/impl/codegen/atm_gcc_atomic.h +19 -28
  6. data/include/grpc/impl/codegen/atm_gcc_sync.h +0 -2
  7. data/include/grpc/impl/codegen/atm_windows.h +0 -2
  8. data/include/grpc/impl/codegen/grpc_types.h +6 -0
  9. data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +3 -3
  10. data/src/core/ext/filters/client_channel/backup_poller.cc +4 -6
  11. data/src/core/ext/filters/client_channel/client_channel.cc +41 -22
  12. data/src/core/ext/filters/client_channel/client_channel.h +1 -1
  13. data/src/core/ext/filters/client_channel/client_channel_plugin.cc +0 -16
  14. data/src/core/ext/filters/client_channel/http_proxy.cc +12 -19
  15. data/src/core/ext/filters/client_channel/http_proxy.h +3 -2
  16. data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +6 -4
  17. data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.h +5 -4
  18. data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +0 -2
  19. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +114 -103
  20. data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.cc +20 -11
  21. data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +106 -108
  22. data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +16 -0
  23. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +20 -13
  24. data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +165 -257
  25. data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +218 -231
  26. data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.h +10 -6
  27. data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +389 -444
  28. data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +16 -16
  29. data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +8 -13
  30. data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +87 -96
  31. data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +38 -37
  32. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +106 -186
  33. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +106 -93
  34. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +170 -218
  35. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +2 -2
  36. data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +1 -1
  37. data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +38 -18
  38. data/src/core/ext/filters/client_channel/resolver/polling_resolver.cc +84 -37
  39. data/src/core/ext/filters/client_channel/resolver/polling_resolver.h +11 -0
  40. data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +1 -0
  41. data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +5 -3
  42. data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +5 -4
  43. data/src/core/ext/filters/client_channel/retry_filter.cc +25 -29
  44. data/src/core/ext/filters/client_channel/subchannel.cc +38 -33
  45. data/src/core/ext/filters/client_channel/subchannel.h +12 -3
  46. data/src/core/ext/filters/client_channel/subchannel_stream_client.cc +1 -2
  47. data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +23 -16
  48. data/src/core/ext/filters/fault_injection/fault_injection_filter.h +8 -0
  49. data/src/core/ext/filters/http/client/http_client_filter.cc +1 -2
  50. data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +2 -4
  51. data/src/core/ext/filters/http/message_compress/message_decompress_filter.cc +0 -2
  52. data/src/core/ext/filters/http/server/http_server_filter.cc +1 -2
  53. data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +12 -8
  54. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +32 -26
  55. data/src/core/ext/transport/chttp2/transport/bin_encoder.cc +1 -1
  56. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +25 -130
  57. data/src/core/ext/transport/chttp2/transport/decode_huff.cc +287 -0
  58. data/src/core/ext/transport/chttp2/transport/decode_huff.h +1018 -0
  59. data/src/core/ext/transport/chttp2/transport/flow_control.cc +83 -51
  60. data/src/core/ext/transport/chttp2/transport/flow_control.h +11 -6
  61. data/src/core/ext/transport/chttp2/transport/frame_ping.cc +1 -2
  62. data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +2 -20
  63. data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +28 -28
  64. data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +1 -10
  65. data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +11 -6
  66. data/src/core/ext/transport/chttp2/transport/internal.h +2 -0
  67. data/src/core/ext/transport/chttp2/transport/parsing.cc +44 -0
  68. data/src/core/ext/transport/chttp2/transport/writing.cc +3 -14
  69. data/src/core/ext/transport/inproc/inproc_transport.cc +1 -3
  70. data/src/core/ext/xds/certificate_provider_store.cc +63 -3
  71. data/src/core/ext/xds/certificate_provider_store.h +9 -1
  72. data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +5 -5
  73. data/src/core/ext/xds/file_watcher_certificate_provider_factory.h +1 -1
  74. data/src/core/ext/xds/xds_api.cc +21 -17
  75. data/src/core/ext/xds/xds_api.h +7 -0
  76. data/src/core/ext/xds/xds_bootstrap.cc +5 -537
  77. data/src/core/ext/xds/xds_bootstrap.h +39 -111
  78. data/src/core/ext/xds/xds_bootstrap_grpc.cc +370 -0
  79. data/src/core/ext/xds/xds_bootstrap_grpc.h +169 -0
  80. data/src/core/ext/xds/xds_client.cc +219 -145
  81. data/src/core/ext/xds/xds_client.h +19 -17
  82. data/src/core/ext/xds/xds_client_grpc.cc +18 -80
  83. data/src/core/ext/xds/xds_client_grpc.h +2 -25
  84. data/src/core/ext/xds/xds_client_stats.cc +4 -4
  85. data/src/core/ext/xds/xds_cluster.cc +87 -79
  86. data/src/core/ext/xds/xds_cluster.h +5 -5
  87. data/src/core/ext/xds/xds_cluster_specifier_plugin.cc +3 -1
  88. data/src/core/ext/xds/xds_common_types.cc +13 -5
  89. data/src/core/ext/xds/xds_endpoint.cc +8 -6
  90. data/src/core/ext/xds/xds_endpoint.h +3 -4
  91. data/src/core/ext/xds/xds_lb_policy_registry.cc +4 -2
  92. data/src/core/ext/xds/xds_listener.cc +25 -20
  93. data/src/core/ext/xds/xds_listener.h +3 -4
  94. data/src/core/ext/xds/xds_resource_type.h +11 -8
  95. data/src/core/ext/xds/xds_route_config.cc +15 -16
  96. data/src/core/ext/xds/xds_route_config.h +3 -3
  97. data/src/core/ext/xds/xds_server_config_fetcher.cc +7 -5
  98. data/src/core/ext/xds/xds_transport_grpc.cc +15 -7
  99. data/src/core/lib/backoff/backoff.cc +2 -4
  100. data/src/core/lib/channel/call_finalization.h +1 -3
  101. data/src/core/lib/channel/channel_args.h +114 -14
  102. data/src/core/lib/channel/channel_trace.cc +3 -4
  103. data/src/core/lib/channel/promise_based_filter.cc +18 -19
  104. data/src/core/lib/channel/status_util.cc +27 -0
  105. data/src/core/lib/channel/status_util.h +10 -0
  106. data/src/core/lib/config/core_configuration.cc +5 -1
  107. data/src/core/lib/config/core_configuration.h +33 -0
  108. data/src/core/lib/debug/stats.cc +26 -30
  109. data/src/core/lib/debug/stats.h +2 -12
  110. data/src/core/lib/debug/stats_data.cc +118 -614
  111. data/src/core/lib/debug/stats_data.h +67 -465
  112. data/src/core/lib/debug/trace.cc +0 -2
  113. data/src/core/lib/event_engine/channel_args_endpoint_config.cc +12 -20
  114. data/src/core/lib/event_engine/channel_args_endpoint_config.h +13 -7
  115. data/src/core/lib/event_engine/forkable.cc +19 -16
  116. data/src/core/lib/event_engine/poller.h +14 -12
  117. data/src/core/lib/event_engine/posix_engine/timer_manager.cc +53 -32
  118. data/src/core/lib/event_engine/posix_engine/timer_manager.h +23 -1
  119. data/src/core/lib/event_engine/thread_pool.cc +131 -94
  120. data/src/core/lib/event_engine/thread_pool.h +56 -23
  121. data/src/core/lib/event_engine/time_util.cc +30 -0
  122. data/src/core/lib/event_engine/time_util.h +32 -0
  123. data/src/core/lib/event_engine/utils.cc +0 -5
  124. data/src/core/lib/event_engine/utils.h +0 -4
  125. data/src/core/lib/event_engine/windows/iocp.cc +13 -7
  126. data/src/core/lib/event_engine/windows/iocp.h +2 -1
  127. data/src/core/lib/event_engine/windows/win_socket.cc +1 -1
  128. data/src/core/lib/experiments/config.cc +146 -0
  129. data/src/core/lib/experiments/config.h +43 -0
  130. data/src/core/lib/experiments/experiments.cc +75 -0
  131. data/src/core/lib/experiments/experiments.h +56 -0
  132. data/src/core/lib/gpr/alloc.cc +1 -9
  133. data/src/core/lib/gpr/log_windows.cc +0 -1
  134. data/src/core/lib/gpr/string_util_windows.cc +3 -30
  135. data/src/core/lib/gpr/sync_abseil.cc +0 -14
  136. data/src/core/lib/gpr/sync_posix.cc +0 -14
  137. data/src/core/lib/gpr/time_posix.cc +0 -6
  138. data/src/core/lib/gpr/time_precise.h +1 -1
  139. data/src/core/lib/gpr/tmpfile_windows.cc +5 -7
  140. data/src/core/lib/gpr/useful.h +11 -0
  141. data/src/core/lib/{gpr → gprpp}/env.h +25 -12
  142. data/src/core/lib/{gpr → gprpp}/env_linux.cc +20 -15
  143. data/src/core/lib/{gpr → gprpp}/env_posix.cc +11 -10
  144. data/src/core/lib/gprpp/env_windows.cc +56 -0
  145. data/src/core/lib/gprpp/fork.cc +14 -22
  146. data/src/core/lib/gprpp/fork.h +0 -8
  147. data/src/core/lib/gprpp/global_config_env.cc +7 -6
  148. data/src/core/lib/gprpp/notification.h +67 -0
  149. data/src/core/lib/gprpp/packed_table.h +40 -0
  150. data/src/core/lib/gprpp/ref_counted_ptr.h +20 -33
  151. data/src/core/lib/gprpp/sorted_pack.h +98 -0
  152. data/src/core/lib/gprpp/status_helper.h +6 -0
  153. data/src/core/lib/gprpp/table.h +9 -1
  154. data/src/core/lib/gprpp/tchar.cc +49 -0
  155. data/src/core/lib/gprpp/tchar.h +33 -0
  156. data/src/core/lib/gprpp/time.cc +21 -0
  157. data/src/core/lib/gprpp/time.h +55 -0
  158. data/src/core/lib/gprpp/validation_errors.cc +61 -0
  159. data/src/core/lib/gprpp/validation_errors.h +110 -0
  160. data/src/core/{ext/filters/client_channel → lib/handshaker}/proxy_mapper.h +3 -3
  161. data/src/core/{ext/filters/client_channel → lib/handshaker}/proxy_mapper_registry.cc +14 -36
  162. data/src/core/lib/handshaker/proxy_mapper_registry.h +75 -0
  163. data/src/core/lib/iomgr/call_combiner.cc +0 -8
  164. data/src/core/lib/iomgr/closure.h +0 -1
  165. data/src/core/lib/iomgr/endpoint_pair_posix.cc +14 -10
  166. data/src/core/lib/iomgr/endpoint_pair_windows.cc +2 -2
  167. data/src/core/lib/iomgr/ev_epoll1_linux.cc +1 -38
  168. data/src/core/lib/iomgr/ev_poll_posix.cc +2 -17
  169. data/src/core/lib/iomgr/exec_ctx.cc +0 -10
  170. data/src/core/lib/iomgr/exec_ctx.h +7 -31
  171. data/src/core/lib/iomgr/iocp_windows.cc +1 -2
  172. data/src/core/lib/iomgr/iomgr.cc +6 -8
  173. data/src/core/lib/iomgr/iomgr_fwd.h +1 -0
  174. data/src/core/lib/iomgr/pollset.h +1 -1
  175. data/src/core/lib/iomgr/pollset_set.h +0 -1
  176. data/src/core/lib/iomgr/resolve_address.h +1 -0
  177. data/src/core/lib/iomgr/resolve_address_impl.h +1 -0
  178. data/src/core/lib/iomgr/resolve_address_posix.cc +5 -0
  179. data/src/core/lib/iomgr/resolve_address_windows.cc +5 -0
  180. data/src/core/lib/iomgr/sockaddr_utils_posix.cc +2 -1
  181. data/src/core/lib/iomgr/socket_utils_common_posix.cc +12 -34
  182. data/src/core/lib/iomgr/socket_utils_posix.cc +83 -1
  183. data/src/core/lib/iomgr/socket_utils_posix.h +98 -6
  184. data/src/core/lib/iomgr/tcp_client.cc +6 -7
  185. data/src/core/lib/iomgr/tcp_client.h +11 -11
  186. data/src/core/lib/iomgr/tcp_client_cfstream.cc +6 -6
  187. data/src/core/lib/iomgr/tcp_client_posix.cc +33 -29
  188. data/src/core/lib/iomgr/tcp_client_posix.h +12 -9
  189. data/src/core/lib/iomgr/tcp_client_windows.cc +6 -6
  190. data/src/core/lib/iomgr/tcp_posix.cc +131 -114
  191. data/src/core/lib/iomgr/tcp_posix.h +3 -1
  192. data/src/core/lib/iomgr/tcp_server.cc +5 -4
  193. data/src/core/lib/iomgr/tcp_server.h +9 -6
  194. data/src/core/lib/iomgr/tcp_server_posix.cc +17 -28
  195. data/src/core/lib/iomgr/tcp_server_utils_posix.h +2 -2
  196. data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +3 -3
  197. data/src/core/lib/iomgr/tcp_server_windows.cc +6 -7
  198. data/src/core/lib/iomgr/tcp_windows.cc +0 -1
  199. data/src/core/lib/iomgr/tcp_windows.h +0 -1
  200. data/src/core/lib/iomgr/timer_generic.cc +4 -4
  201. data/src/core/lib/iomgr/timer_manager.cc +1 -2
  202. data/src/core/lib/iomgr/wakeup_fd_eventfd.cc +0 -2
  203. data/src/core/lib/json/json_object_loader.cc +21 -52
  204. data/src/core/lib/json/json_object_loader.h +56 -76
  205. data/src/core/lib/json/json_util.cc +2 -1
  206. data/src/core/lib/load_balancing/lb_policy.h +5 -5
  207. data/src/core/lib/load_balancing/lb_policy_registry.cc +29 -55
  208. data/src/core/lib/load_balancing/lb_policy_registry.h +23 -11
  209. data/src/core/lib/promise/activity.h +2 -3
  210. data/src/core/lib/promise/context.h +1 -1
  211. data/src/core/lib/promise/sleep.cc +16 -4
  212. data/src/core/lib/promise/sleep.h +8 -2
  213. data/src/core/lib/resolver/resolver.h +13 -3
  214. data/src/core/lib/resource_quota/api.cc +9 -0
  215. data/src/core/lib/resource_quota/api.h +6 -0
  216. data/src/core/lib/resource_quota/arena.cc +1 -3
  217. data/src/core/lib/resource_quota/memory_quota.cc +8 -24
  218. data/src/core/lib/resource_quota/memory_quota.h +6 -19
  219. data/src/core/lib/resource_quota/periodic_update.cc +2 -3
  220. data/src/core/{ext/xds → lib/security/certificate_provider}/certificate_provider_factory.h +3 -3
  221. data/src/core/lib/security/certificate_provider/certificate_provider_registry.cc +60 -0
  222. data/src/core/lib/security/certificate_provider/certificate_provider_registry.h +70 -0
  223. data/src/core/lib/security/credentials/channel_creds_registry_init.cc +1 -0
  224. data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +15 -16
  225. data/src/core/lib/security/credentials/external/external_account_credentials.cc +2 -1
  226. data/src/core/lib/security/credentials/google_default/credentials_generic.cc +5 -8
  227. data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +6 -6
  228. data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +3 -2
  229. data/src/core/lib/security/credentials/jwt/jwt_verifier.h +1 -1
  230. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +1 -2
  231. data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +4 -3
  232. data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +4 -2
  233. data/src/core/lib/security/credentials/tls/tls_utils.cc +3 -1
  234. data/src/core/lib/security/transport/client_auth_filter.cc +12 -1
  235. data/src/core/lib/security/transport/secure_endpoint.cc +0 -4
  236. data/src/core/lib/surface/call.cc +1 -11
  237. data/src/core/lib/surface/channel.cc +3 -2
  238. data/src/core/lib/surface/completion_queue.cc +16 -28
  239. data/src/core/lib/surface/completion_queue.h +1 -1
  240. data/src/core/lib/surface/completion_queue_factory.cc +5 -0
  241. data/src/core/lib/surface/init.cc +16 -11
  242. data/src/core/lib/surface/init_internally.cc +24 -0
  243. data/src/core/lib/surface/init_internally.h +28 -0
  244. data/src/core/lib/surface/server.cc +1 -7
  245. data/src/core/lib/surface/server.h +4 -6
  246. data/src/core/lib/surface/version.cc +2 -2
  247. data/src/core/lib/transport/bdp_estimator.cc +1 -3
  248. data/src/core/lib/transport/metadata_batch.cc +2 -3
  249. data/src/core/lib/transport/metadata_batch.h +9 -7
  250. data/src/core/lib/transport/parsed_metadata.h +4 -2
  251. data/src/core/lib/transport/status_conversion.cc +1 -3
  252. data/src/core/lib/transport/tcp_connect_handshaker.cc +9 -5
  253. data/src/core/lib/transport/transport.h +0 -1
  254. data/src/core/lib/transport/transport_impl.h +0 -1
  255. data/src/core/plugin_registry/grpc_plugin_registry.cc +23 -46
  256. data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +13 -25
  257. data/src/ruby/ext/grpc/extconf.rb +1 -1
  258. data/src/ruby/lib/grpc/2.6/grpc_c.so +0 -0
  259. data/src/ruby/lib/grpc/2.7/grpc_c.so +0 -0
  260. data/src/ruby/lib/grpc/3.0/grpc_c.so +0 -0
  261. data/src/ruby/lib/grpc/3.1/grpc_c.so +0 -0
  262. data/src/ruby/lib/grpc/grpc_c.so +0 -0
  263. data/src/ruby/lib/grpc/version.rb +1 -1
  264. data/src/ruby/spec/channel_spec.rb +5 -0
  265. data/src/ruby/spec/generic/server_interceptors_spec.rb +1 -1
  266. data/src/ruby/spec/user_agent_spec.rb +1 -1
  267. metadata +32 -19
  268. data/src/core/ext/filters/client_channel/proxy_mapper_registry.h +0 -56
  269. data/src/core/ext/xds/certificate_provider_registry.cc +0 -103
  270. data/src/core/ext/xds/certificate_provider_registry.h +0 -59
  271. data/src/core/lib/event_engine/promise.h +0 -78
  272. data/src/core/lib/gpr/env_windows.cc +0 -74
  273. data/src/core/lib/gpr/string_windows.h +0 -32
  274. data/src/core/lib/profiling/basic_timers.cc +0 -295
  275. data/src/core/lib/profiling/stap_timers.cc +0 -50
  276. data/src/core/lib/profiling/timers.h +0 -94
  277. data/src/ruby/lib/grpc/2.5/grpc_c.so +0 -0
@@ -23,527 +23,129 @@
23
23
 
24
24
  #include <grpc/support/port_platform.h>
25
25
 
26
+ // IWYU pragma: private, include "src/core/lib/debug/stats.h"
27
+
26
28
  typedef enum {
27
29
  GRPC_STATS_COUNTER_CLIENT_CALLS_CREATED,
28
30
  GRPC_STATS_COUNTER_SERVER_CALLS_CREATED,
29
- GRPC_STATS_COUNTER_CQS_CREATED,
30
31
  GRPC_STATS_COUNTER_CLIENT_CHANNELS_CREATED,
31
32
  GRPC_STATS_COUNTER_CLIENT_SUBCHANNELS_CREATED,
32
33
  GRPC_STATS_COUNTER_SERVER_CHANNELS_CREATED,
33
- GRPC_STATS_COUNTER_SYSCALL_POLL,
34
- GRPC_STATS_COUNTER_SYSCALL_WAIT,
35
- GRPC_STATS_COUNTER_POLLSET_KICK,
36
- GRPC_STATS_COUNTER_POLLSET_KICKED_WITHOUT_POLLER,
37
- GRPC_STATS_COUNTER_POLLSET_KICKED_AGAIN,
38
- GRPC_STATS_COUNTER_POLLSET_KICK_WAKEUP_FD,
39
- GRPC_STATS_COUNTER_POLLSET_KICK_WAKEUP_CV,
40
- GRPC_STATS_COUNTER_POLLSET_KICK_OWN_THREAD,
41
- GRPC_STATS_COUNTER_HISTOGRAM_SLOW_LOOKUPS,
42
34
  GRPC_STATS_COUNTER_SYSCALL_WRITE,
43
35
  GRPC_STATS_COUNTER_SYSCALL_READ,
44
- GRPC_STATS_COUNTER_TCP_BACKUP_POLLERS_CREATED,
45
- GRPC_STATS_COUNTER_TCP_BACKUP_POLLER_POLLS,
46
- GRPC_STATS_COUNTER_HTTP2_OP_BATCHES,
47
- GRPC_STATS_COUNTER_HTTP2_OP_CANCEL,
48
- GRPC_STATS_COUNTER_HTTP2_OP_SEND_INITIAL_METADATA,
49
- GRPC_STATS_COUNTER_HTTP2_OP_SEND_MESSAGE,
50
- GRPC_STATS_COUNTER_HTTP2_OP_SEND_TRAILING_METADATA,
51
- GRPC_STATS_COUNTER_HTTP2_OP_RECV_INITIAL_METADATA,
52
- GRPC_STATS_COUNTER_HTTP2_OP_RECV_MESSAGE,
53
- GRPC_STATS_COUNTER_HTTP2_OP_RECV_TRAILING_METADATA,
36
+ GRPC_STATS_COUNTER_TCP_READ_ALLOC_8K,
37
+ GRPC_STATS_COUNTER_TCP_READ_ALLOC_64K,
54
38
  GRPC_STATS_COUNTER_HTTP2_SETTINGS_WRITES,
55
39
  GRPC_STATS_COUNTER_HTTP2_PINGS_SENT,
56
40
  GRPC_STATS_COUNTER_HTTP2_WRITES_BEGUN,
57
- GRPC_STATS_COUNTER_HTTP2_WRITES_OFFLOADED,
58
- GRPC_STATS_COUNTER_HTTP2_WRITES_CONTINUED,
59
- GRPC_STATS_COUNTER_HTTP2_PARTIAL_WRITES,
60
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_INITIAL_WRITE,
61
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_START_NEW_STREAM,
62
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_MESSAGE,
63
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_INITIAL_METADATA,
64
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_TRAILING_METADATA,
65
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_RETRY_SEND_PING,
66
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_CONTINUE_PINGS,
67
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_GOAWAY_SENT,
68
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_RST_STREAM,
69
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_CLOSE_FROM_API,
70
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_STREAM_FLOW_CONTROL,
71
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL,
72
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_SETTINGS,
73
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SETTINGS_ACK,
74
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_BDP_ESTIMATOR_PING,
75
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_SETTING,
76
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_UPDATE,
77
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_APPLICATION_PING,
78
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_KEEPALIVE_PING,
79
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL_UNSTALLED,
80
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_PING_RESPONSE,
81
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FORCE_RST_STREAM,
82
- GRPC_STATS_COUNTER_HTTP2_SPURIOUS_WRITES_BEGUN,
83
- GRPC_STATS_COUNTER_HPACK_RECV_INDEXED,
84
- GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_INCIDX,
85
- GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_INCIDX_V,
86
- GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NOTIDX,
87
- GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NOTIDX_V,
88
- GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NVRIDX,
89
- GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NVRIDX_V,
90
- GRPC_STATS_COUNTER_HPACK_RECV_UNCOMPRESSED,
91
- GRPC_STATS_COUNTER_HPACK_RECV_HUFFMAN,
92
- GRPC_STATS_COUNTER_HPACK_RECV_BINARY,
93
- GRPC_STATS_COUNTER_HPACK_RECV_BINARY_BASE64,
94
- GRPC_STATS_COUNTER_HPACK_SEND_INDEXED,
95
- GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_INCIDX,
96
- GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_INCIDX_V,
97
- GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NOTIDX,
98
- GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NOTIDX_V,
99
- GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NVRIDX,
100
- GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NVRIDX_V,
101
- GRPC_STATS_COUNTER_HPACK_SEND_UNCOMPRESSED,
102
- GRPC_STATS_COUNTER_HPACK_SEND_HUFFMAN,
103
- GRPC_STATS_COUNTER_HPACK_SEND_BINARY,
104
- GRPC_STATS_COUNTER_HPACK_SEND_BINARY_BASE64,
105
- GRPC_STATS_COUNTER_COMBINER_LOCKS_INITIATED,
106
- GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_ITEMS,
107
- GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS,
108
- GRPC_STATS_COUNTER_COMBINER_LOCKS_OFFLOADED,
109
- GRPC_STATS_COUNTER_CALL_COMBINER_LOCKS_INITIATED,
110
- GRPC_STATS_COUNTER_CALL_COMBINER_LOCKS_SCHEDULED_ITEMS,
111
- GRPC_STATS_COUNTER_CALL_COMBINER_SET_NOTIFY_ON_CANCEL,
112
- GRPC_STATS_COUNTER_CALL_COMBINER_CANCELLED,
113
- GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_SHORT_ITEMS,
114
- GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_LONG_ITEMS,
115
- GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_TO_SELF,
116
- GRPC_STATS_COUNTER_EXECUTOR_WAKEUP_INITIATED,
117
- GRPC_STATS_COUNTER_EXECUTOR_QUEUE_DRAINED,
118
- GRPC_STATS_COUNTER_EXECUTOR_PUSH_RETRIES,
119
- GRPC_STATS_COUNTER_SERVER_REQUESTED_CALLS,
120
- GRPC_STATS_COUNTER_SERVER_SLOWPATH_REQUESTS_QUEUED,
121
- GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRYLOCK_FAILURES,
122
- GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRYLOCK_SUCCESSES,
123
- GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRANSIENT_POP_FAILURES,
41
+ GRPC_STATS_COUNTER_HTTP2_TRANSPORT_STALLS,
42
+ GRPC_STATS_COUNTER_HTTP2_STREAM_STALLS,
43
+ GRPC_STATS_COUNTER_CQ_PLUCK_CREATES,
44
+ GRPC_STATS_COUNTER_CQ_NEXT_CREATES,
45
+ GRPC_STATS_COUNTER_CQ_CALLBACK_CREATES,
124
46
  GRPC_STATS_COUNTER_COUNT
125
47
  } grpc_stats_counters;
126
48
  extern const char* grpc_stats_counter_name[GRPC_STATS_COUNTER_COUNT];
127
49
  extern const char* grpc_stats_counter_doc[GRPC_STATS_COUNTER_COUNT];
128
50
  typedef enum {
129
51
  GRPC_STATS_HISTOGRAM_CALL_INITIAL_SIZE,
130
- GRPC_STATS_HISTOGRAM_POLL_EVENTS_RETURNED,
131
52
  GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE,
132
53
  GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE,
133
54
  GRPC_STATS_HISTOGRAM_TCP_READ_SIZE,
134
55
  GRPC_STATS_HISTOGRAM_TCP_READ_OFFER,
135
56
  GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE,
136
57
  GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE,
137
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_INITIAL_METADATA_PER_WRITE,
138
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_PER_WRITE,
139
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_TRAILING_METADATA_PER_WRITE,
140
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_FLOWCTL_PER_WRITE,
141
- GRPC_STATS_HISTOGRAM_SERVER_CQS_CHECKED,
142
58
  GRPC_STATS_HISTOGRAM_COUNT
143
59
  } grpc_stats_histograms;
144
60
  extern const char* grpc_stats_histogram_name[GRPC_STATS_HISTOGRAM_COUNT];
145
61
  extern const char* grpc_stats_histogram_doc[GRPC_STATS_HISTOGRAM_COUNT];
146
62
  typedef enum {
147
63
  GRPC_STATS_HISTOGRAM_CALL_INITIAL_SIZE_FIRST_SLOT = 0,
148
- GRPC_STATS_HISTOGRAM_CALL_INITIAL_SIZE_BUCKETS = 64,
149
- GRPC_STATS_HISTOGRAM_POLL_EVENTS_RETURNED_FIRST_SLOT = 64,
150
- GRPC_STATS_HISTOGRAM_POLL_EVENTS_RETURNED_BUCKETS = 128,
151
- GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE_FIRST_SLOT = 192,
152
- GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE_BUCKETS = 64,
153
- GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE_FIRST_SLOT = 256,
154
- GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE_BUCKETS = 64,
155
- GRPC_STATS_HISTOGRAM_TCP_READ_SIZE_FIRST_SLOT = 320,
156
- GRPC_STATS_HISTOGRAM_TCP_READ_SIZE_BUCKETS = 64,
157
- GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_FIRST_SLOT = 384,
158
- GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_BUCKETS = 64,
159
- GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE_FIRST_SLOT = 448,
160
- GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE_BUCKETS = 64,
161
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE_FIRST_SLOT = 512,
162
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE_BUCKETS = 64,
163
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_INITIAL_METADATA_PER_WRITE_FIRST_SLOT = 576,
164
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_INITIAL_METADATA_PER_WRITE_BUCKETS = 64,
165
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_PER_WRITE_FIRST_SLOT = 640,
166
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_PER_WRITE_BUCKETS = 64,
167
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_TRAILING_METADATA_PER_WRITE_FIRST_SLOT = 704,
168
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_TRAILING_METADATA_PER_WRITE_BUCKETS = 64,
169
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_FLOWCTL_PER_WRITE_FIRST_SLOT = 768,
170
- GRPC_STATS_HISTOGRAM_HTTP2_SEND_FLOWCTL_PER_WRITE_BUCKETS = 64,
171
- GRPC_STATS_HISTOGRAM_SERVER_CQS_CHECKED_FIRST_SLOT = 832,
172
- GRPC_STATS_HISTOGRAM_SERVER_CQS_CHECKED_BUCKETS = 8,
173
- GRPC_STATS_HISTOGRAM_BUCKETS = 840
64
+ GRPC_STATS_HISTOGRAM_CALL_INITIAL_SIZE_BUCKETS = 24,
65
+ GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE_FIRST_SLOT = 24,
66
+ GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE_BUCKETS = 20,
67
+ GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE_FIRST_SLOT = 44,
68
+ GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE_BUCKETS = 10,
69
+ GRPC_STATS_HISTOGRAM_TCP_READ_SIZE_FIRST_SLOT = 54,
70
+ GRPC_STATS_HISTOGRAM_TCP_READ_SIZE_BUCKETS = 20,
71
+ GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_FIRST_SLOT = 74,
72
+ GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_BUCKETS = 20,
73
+ GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE_FIRST_SLOT = 94,
74
+ GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE_BUCKETS = 10,
75
+ GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE_FIRST_SLOT = 104,
76
+ GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE_BUCKETS = 20,
77
+ GRPC_STATS_HISTOGRAM_BUCKETS = 124
174
78
  } grpc_stats_histogram_constants;
175
- #if defined(GRPC_COLLECT_STATS) || !defined(NDEBUG)
176
79
  #define GRPC_STATS_INC_CLIENT_CALLS_CREATED() \
177
80
  GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CLIENT_CALLS_CREATED)
178
81
  #define GRPC_STATS_INC_SERVER_CALLS_CREATED() \
179
82
  GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_SERVER_CALLS_CREATED)
180
- #define GRPC_STATS_INC_CQS_CREATED() \
181
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CQS_CREATED)
182
83
  #define GRPC_STATS_INC_CLIENT_CHANNELS_CREATED() \
183
84
  GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CLIENT_CHANNELS_CREATED)
184
85
  #define GRPC_STATS_INC_CLIENT_SUBCHANNELS_CREATED() \
185
86
  GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CLIENT_SUBCHANNELS_CREATED)
186
87
  #define GRPC_STATS_INC_SERVER_CHANNELS_CREATED() \
187
88
  GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_SERVER_CHANNELS_CREATED)
188
- #define GRPC_STATS_INC_SYSCALL_POLL() \
189
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_SYSCALL_POLL)
190
- #define GRPC_STATS_INC_SYSCALL_WAIT() \
191
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_SYSCALL_WAIT)
192
- #define GRPC_STATS_INC_POLLSET_KICK() \
193
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_POLLSET_KICK)
194
- #define GRPC_STATS_INC_POLLSET_KICKED_WITHOUT_POLLER() \
195
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_POLLSET_KICKED_WITHOUT_POLLER)
196
- #define GRPC_STATS_INC_POLLSET_KICKED_AGAIN() \
197
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_POLLSET_KICKED_AGAIN)
198
- #define GRPC_STATS_INC_POLLSET_KICK_WAKEUP_FD() \
199
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_POLLSET_KICK_WAKEUP_FD)
200
- #define GRPC_STATS_INC_POLLSET_KICK_WAKEUP_CV() \
201
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_POLLSET_KICK_WAKEUP_CV)
202
- #define GRPC_STATS_INC_POLLSET_KICK_OWN_THREAD() \
203
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_POLLSET_KICK_OWN_THREAD)
204
- #define GRPC_STATS_INC_HISTOGRAM_SLOW_LOOKUPS() \
205
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HISTOGRAM_SLOW_LOOKUPS)
206
89
  #define GRPC_STATS_INC_SYSCALL_WRITE() \
207
90
  GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_SYSCALL_WRITE)
208
91
  #define GRPC_STATS_INC_SYSCALL_READ() \
209
92
  GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_SYSCALL_READ)
210
- #define GRPC_STATS_INC_TCP_BACKUP_POLLERS_CREATED() \
211
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_TCP_BACKUP_POLLERS_CREATED)
212
- #define GRPC_STATS_INC_TCP_BACKUP_POLLER_POLLS() \
213
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_TCP_BACKUP_POLLER_POLLS)
214
- #define GRPC_STATS_INC_HTTP2_OP_BATCHES() \
215
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_OP_BATCHES)
216
- #define GRPC_STATS_INC_HTTP2_OP_CANCEL() \
217
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_OP_CANCEL)
218
- #define GRPC_STATS_INC_HTTP2_OP_SEND_INITIAL_METADATA() \
219
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_OP_SEND_INITIAL_METADATA)
220
- #define GRPC_STATS_INC_HTTP2_OP_SEND_MESSAGE() \
221
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_OP_SEND_MESSAGE)
222
- #define GRPC_STATS_INC_HTTP2_OP_SEND_TRAILING_METADATA() \
223
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_OP_SEND_TRAILING_METADATA)
224
- #define GRPC_STATS_INC_HTTP2_OP_RECV_INITIAL_METADATA() \
225
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_OP_RECV_INITIAL_METADATA)
226
- #define GRPC_STATS_INC_HTTP2_OP_RECV_MESSAGE() \
227
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_OP_RECV_MESSAGE)
228
- #define GRPC_STATS_INC_HTTP2_OP_RECV_TRAILING_METADATA() \
229
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_OP_RECV_TRAILING_METADATA)
93
+ #define GRPC_STATS_INC_TCP_READ_ALLOC_8K() \
94
+ GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_TCP_READ_ALLOC_8K)
95
+ #define GRPC_STATS_INC_TCP_READ_ALLOC_64K() \
96
+ GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_TCP_READ_ALLOC_64K)
230
97
  #define GRPC_STATS_INC_HTTP2_SETTINGS_WRITES() \
231
98
  GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_SETTINGS_WRITES)
232
99
  #define GRPC_STATS_INC_HTTP2_PINGS_SENT() \
233
100
  GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_PINGS_SENT)
234
101
  #define GRPC_STATS_INC_HTTP2_WRITES_BEGUN() \
235
102
  GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_WRITES_BEGUN)
236
- #define GRPC_STATS_INC_HTTP2_WRITES_OFFLOADED() \
237
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_WRITES_OFFLOADED)
238
- #define GRPC_STATS_INC_HTTP2_WRITES_CONTINUED() \
239
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_WRITES_CONTINUED)
240
- #define GRPC_STATS_INC_HTTP2_PARTIAL_WRITES() \
241
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_PARTIAL_WRITES)
242
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_INITIAL_WRITE() \
243
- GRPC_STATS_INC_COUNTER( \
244
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_INITIAL_WRITE)
245
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_START_NEW_STREAM() \
246
- GRPC_STATS_INC_COUNTER( \
247
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_START_NEW_STREAM)
248
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_MESSAGE() \
249
- GRPC_STATS_INC_COUNTER( \
250
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_MESSAGE)
251
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_INITIAL_METADATA() \
252
- GRPC_STATS_INC_COUNTER( \
253
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_INITIAL_METADATA)
254
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_TRAILING_METADATA() \
255
- GRPC_STATS_INC_COUNTER( \
256
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_TRAILING_METADATA)
257
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_RETRY_SEND_PING() \
258
- GRPC_STATS_INC_COUNTER( \
259
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_RETRY_SEND_PING)
260
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_CONTINUE_PINGS() \
261
- GRPC_STATS_INC_COUNTER( \
262
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_CONTINUE_PINGS)
263
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_GOAWAY_SENT() \
264
- GRPC_STATS_INC_COUNTER( \
265
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_GOAWAY_SENT)
266
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_RST_STREAM() \
267
- GRPC_STATS_INC_COUNTER( \
268
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_RST_STREAM)
269
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_CLOSE_FROM_API() \
270
- GRPC_STATS_INC_COUNTER( \
271
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_CLOSE_FROM_API)
272
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_STREAM_FLOW_CONTROL() \
273
- GRPC_STATS_INC_COUNTER( \
274
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_STREAM_FLOW_CONTROL)
275
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL() \
276
- GRPC_STATS_INC_COUNTER( \
277
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL)
278
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_SETTINGS() \
279
- GRPC_STATS_INC_COUNTER( \
280
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SEND_SETTINGS)
281
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SETTINGS_ACK() \
282
- GRPC_STATS_INC_COUNTER( \
283
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_SETTINGS_ACK)
284
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_BDP_ESTIMATOR_PING() \
285
- GRPC_STATS_INC_COUNTER( \
286
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_BDP_ESTIMATOR_PING)
287
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_SETTING() \
288
- GRPC_STATS_INC_COUNTER( \
289
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_SETTING)
290
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_UPDATE() \
291
- GRPC_STATS_INC_COUNTER( \
292
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_UPDATE)
293
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_APPLICATION_PING() \
294
- GRPC_STATS_INC_COUNTER( \
295
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_APPLICATION_PING)
296
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_KEEPALIVE_PING() \
297
- GRPC_STATS_INC_COUNTER( \
298
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_KEEPALIVE_PING)
299
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL_UNSTALLED() \
300
- GRPC_STATS_INC_COUNTER( \
301
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL_UNSTALLED)
302
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_PING_RESPONSE() \
303
- GRPC_STATS_INC_COUNTER( \
304
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_PING_RESPONSE)
305
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_FORCE_RST_STREAM() \
306
- GRPC_STATS_INC_COUNTER( \
307
- GRPC_STATS_COUNTER_HTTP2_INITIATE_WRITE_DUE_TO_FORCE_RST_STREAM)
308
- #define GRPC_STATS_INC_HTTP2_SPURIOUS_WRITES_BEGUN() \
309
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_SPURIOUS_WRITES_BEGUN)
310
- #define GRPC_STATS_INC_HPACK_RECV_INDEXED() \
311
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_RECV_INDEXED)
312
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_INCIDX() \
313
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_INCIDX)
314
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_INCIDX_V() \
315
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_INCIDX_V)
316
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NOTIDX() \
317
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NOTIDX)
318
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NOTIDX_V() \
319
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NOTIDX_V)
320
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NVRIDX() \
321
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NVRIDX)
322
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NVRIDX_V() \
323
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_RECV_LITHDR_NVRIDX_V)
324
- #define GRPC_STATS_INC_HPACK_RECV_UNCOMPRESSED() \
325
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_RECV_UNCOMPRESSED)
326
- #define GRPC_STATS_INC_HPACK_RECV_HUFFMAN() \
327
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_RECV_HUFFMAN)
328
- #define GRPC_STATS_INC_HPACK_RECV_BINARY() \
329
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_RECV_BINARY)
330
- #define GRPC_STATS_INC_HPACK_RECV_BINARY_BASE64() \
331
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_RECV_BINARY_BASE64)
332
- #define GRPC_STATS_INC_HPACK_SEND_INDEXED() \
333
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_SEND_INDEXED)
334
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_INCIDX() \
335
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_INCIDX)
336
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_INCIDX_V() \
337
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_INCIDX_V)
338
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NOTIDX() \
339
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NOTIDX)
340
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NOTIDX_V() \
341
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NOTIDX_V)
342
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NVRIDX() \
343
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NVRIDX)
344
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NVRIDX_V() \
345
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_SEND_LITHDR_NVRIDX_V)
346
- #define GRPC_STATS_INC_HPACK_SEND_UNCOMPRESSED() \
347
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_SEND_UNCOMPRESSED)
348
- #define GRPC_STATS_INC_HPACK_SEND_HUFFMAN() \
349
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_SEND_HUFFMAN)
350
- #define GRPC_STATS_INC_HPACK_SEND_BINARY() \
351
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_SEND_BINARY)
352
- #define GRPC_STATS_INC_HPACK_SEND_BINARY_BASE64() \
353
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HPACK_SEND_BINARY_BASE64)
354
- #define GRPC_STATS_INC_COMBINER_LOCKS_INITIATED() \
355
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_COMBINER_LOCKS_INITIATED)
356
- #define GRPC_STATS_INC_COMBINER_LOCKS_SCHEDULED_ITEMS() \
357
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_ITEMS)
358
- #define GRPC_STATS_INC_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS() \
359
- GRPC_STATS_INC_COUNTER( \
360
- GRPC_STATS_COUNTER_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS)
361
- #define GRPC_STATS_INC_COMBINER_LOCKS_OFFLOADED() \
362
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_COMBINER_LOCKS_OFFLOADED)
363
- #define GRPC_STATS_INC_CALL_COMBINER_LOCKS_INITIATED() \
364
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CALL_COMBINER_LOCKS_INITIATED)
365
- #define GRPC_STATS_INC_CALL_COMBINER_LOCKS_SCHEDULED_ITEMS() \
366
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CALL_COMBINER_LOCKS_SCHEDULED_ITEMS)
367
- #define GRPC_STATS_INC_CALL_COMBINER_SET_NOTIFY_ON_CANCEL() \
368
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CALL_COMBINER_SET_NOTIFY_ON_CANCEL)
369
- #define GRPC_STATS_INC_CALL_COMBINER_CANCELLED() \
370
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CALL_COMBINER_CANCELLED)
371
- #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_SHORT_ITEMS() \
372
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_SHORT_ITEMS)
373
- #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_LONG_ITEMS() \
374
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_LONG_ITEMS)
375
- #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_TO_SELF() \
376
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_EXECUTOR_SCHEDULED_TO_SELF)
377
- #define GRPC_STATS_INC_EXECUTOR_WAKEUP_INITIATED() \
378
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_EXECUTOR_WAKEUP_INITIATED)
379
- #define GRPC_STATS_INC_EXECUTOR_QUEUE_DRAINED() \
380
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_EXECUTOR_QUEUE_DRAINED)
381
- #define GRPC_STATS_INC_EXECUTOR_PUSH_RETRIES() \
382
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_EXECUTOR_PUSH_RETRIES)
383
- #define GRPC_STATS_INC_SERVER_REQUESTED_CALLS() \
384
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_SERVER_REQUESTED_CALLS)
385
- #define GRPC_STATS_INC_SERVER_SLOWPATH_REQUESTS_QUEUED() \
386
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_SERVER_SLOWPATH_REQUESTS_QUEUED)
387
- #define GRPC_STATS_INC_CQ_EV_QUEUE_TRYLOCK_FAILURES() \
388
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRYLOCK_FAILURES)
389
- #define GRPC_STATS_INC_CQ_EV_QUEUE_TRYLOCK_SUCCESSES() \
390
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRYLOCK_SUCCESSES)
391
- #define GRPC_STATS_INC_CQ_EV_QUEUE_TRANSIENT_POP_FAILURES() \
392
- GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CQ_EV_QUEUE_TRANSIENT_POP_FAILURES)
103
+ #define GRPC_STATS_INC_HTTP2_TRANSPORT_STALLS() \
104
+ GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_TRANSPORT_STALLS)
105
+ #define GRPC_STATS_INC_HTTP2_STREAM_STALLS() \
106
+ GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_HTTP2_STREAM_STALLS)
107
+ #define GRPC_STATS_INC_CQ_PLUCK_CREATES() \
108
+ GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CQ_PLUCK_CREATES)
109
+ #define GRPC_STATS_INC_CQ_NEXT_CREATES() \
110
+ GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CQ_NEXT_CREATES)
111
+ #define GRPC_STATS_INC_CQ_CALLBACK_CREATES() \
112
+ GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_CQ_CALLBACK_CREATES)
393
113
  #define GRPC_STATS_INC_CALL_INITIAL_SIZE(value) \
394
- grpc_stats_inc_call_initial_size((int)(value))
395
- void grpc_stats_inc_call_initial_size(int x);
396
- #define GRPC_STATS_INC_POLL_EVENTS_RETURNED(value) \
397
- grpc_stats_inc_poll_events_returned((int)(value))
398
- void grpc_stats_inc_poll_events_returned(int x);
114
+ GRPC_STATS_INC_HISTOGRAM( \
115
+ GRPC_STATS_HISTOGRAM_CALL_INITIAL_SIZE, \
116
+ grpc_core::BucketForHistogramValue_32768_24(static_cast<int>(value)))
399
117
  #define GRPC_STATS_INC_TCP_WRITE_SIZE(value) \
400
- grpc_stats_inc_tcp_write_size((int)(value))
401
- void grpc_stats_inc_tcp_write_size(int x);
118
+ GRPC_STATS_INC_HISTOGRAM( \
119
+ GRPC_STATS_HISTOGRAM_TCP_WRITE_SIZE, \
120
+ grpc_core::BucketForHistogramValue_16777216_20(static_cast<int>(value)))
402
121
  #define GRPC_STATS_INC_TCP_WRITE_IOV_SIZE(value) \
403
- grpc_stats_inc_tcp_write_iov_size((int)(value))
404
- void grpc_stats_inc_tcp_write_iov_size(int x);
122
+ GRPC_STATS_INC_HISTOGRAM( \
123
+ GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE, \
124
+ grpc_core::BucketForHistogramValue_80_10(static_cast<int>(value)))
405
125
  #define GRPC_STATS_INC_TCP_READ_SIZE(value) \
406
- grpc_stats_inc_tcp_read_size((int)(value))
407
- void grpc_stats_inc_tcp_read_size(int x);
126
+ GRPC_STATS_INC_HISTOGRAM( \
127
+ GRPC_STATS_HISTOGRAM_TCP_READ_SIZE, \
128
+ grpc_core::BucketForHistogramValue_16777216_20(static_cast<int>(value)))
408
129
  #define GRPC_STATS_INC_TCP_READ_OFFER(value) \
409
- grpc_stats_inc_tcp_read_offer((int)(value))
410
- void grpc_stats_inc_tcp_read_offer(int x);
130
+ GRPC_STATS_INC_HISTOGRAM( \
131
+ GRPC_STATS_HISTOGRAM_TCP_READ_OFFER, \
132
+ grpc_core::BucketForHistogramValue_16777216_20(static_cast<int>(value)))
411
133
  #define GRPC_STATS_INC_TCP_READ_OFFER_IOV_SIZE(value) \
412
- grpc_stats_inc_tcp_read_offer_iov_size((int)(value))
413
- void grpc_stats_inc_tcp_read_offer_iov_size(int x);
134
+ GRPC_STATS_INC_HISTOGRAM( \
135
+ GRPC_STATS_HISTOGRAM_TCP_READ_OFFER_IOV_SIZE, \
136
+ grpc_core::BucketForHistogramValue_80_10(static_cast<int>(value)))
414
137
  #define GRPC_STATS_INC_HTTP2_SEND_MESSAGE_SIZE(value) \
415
- grpc_stats_inc_http2_send_message_size((int)(value))
416
- void grpc_stats_inc_http2_send_message_size(int x);
417
- #define GRPC_STATS_INC_HTTP2_SEND_INITIAL_METADATA_PER_WRITE(value) \
418
- grpc_stats_inc_http2_send_initial_metadata_per_write((int)(value))
419
- void grpc_stats_inc_http2_send_initial_metadata_per_write(int x);
420
- #define GRPC_STATS_INC_HTTP2_SEND_MESSAGE_PER_WRITE(value) \
421
- grpc_stats_inc_http2_send_message_per_write((int)(value))
422
- void grpc_stats_inc_http2_send_message_per_write(int x);
423
- #define GRPC_STATS_INC_HTTP2_SEND_TRAILING_METADATA_PER_WRITE(value) \
424
- grpc_stats_inc_http2_send_trailing_metadata_per_write((int)(value))
425
- void grpc_stats_inc_http2_send_trailing_metadata_per_write(int x);
426
- #define GRPC_STATS_INC_HTTP2_SEND_FLOWCTL_PER_WRITE(value) \
427
- grpc_stats_inc_http2_send_flowctl_per_write((int)(value))
428
- void grpc_stats_inc_http2_send_flowctl_per_write(int x);
429
- #define GRPC_STATS_INC_SERVER_CQS_CHECKED(value) \
430
- grpc_stats_inc_server_cqs_checked((int)(value))
431
- void grpc_stats_inc_server_cqs_checked(int x);
432
- #else
433
- #define GRPC_STATS_INC_CLIENT_CALLS_CREATED()
434
- #define GRPC_STATS_INC_SERVER_CALLS_CREATED()
435
- #define GRPC_STATS_INC_CQS_CREATED()
436
- #define GRPC_STATS_INC_CLIENT_CHANNELS_CREATED()
437
- #define GRPC_STATS_INC_CLIENT_SUBCHANNELS_CREATED()
438
- #define GRPC_STATS_INC_SERVER_CHANNELS_CREATED()
439
- #define GRPC_STATS_INC_SYSCALL_POLL()
440
- #define GRPC_STATS_INC_SYSCALL_WAIT()
441
- #define GRPC_STATS_INC_POLLSET_KICK()
442
- #define GRPC_STATS_INC_POLLSET_KICKED_WITHOUT_POLLER()
443
- #define GRPC_STATS_INC_POLLSET_KICKED_AGAIN()
444
- #define GRPC_STATS_INC_POLLSET_KICK_WAKEUP_FD()
445
- #define GRPC_STATS_INC_POLLSET_KICK_WAKEUP_CV()
446
- #define GRPC_STATS_INC_POLLSET_KICK_OWN_THREAD()
447
- #define GRPC_STATS_INC_HISTOGRAM_SLOW_LOOKUPS()
448
- #define GRPC_STATS_INC_SYSCALL_WRITE()
449
- #define GRPC_STATS_INC_SYSCALL_READ()
450
- #define GRPC_STATS_INC_TCP_BACKUP_POLLERS_CREATED()
451
- #define GRPC_STATS_INC_TCP_BACKUP_POLLER_POLLS()
452
- #define GRPC_STATS_INC_HTTP2_OP_BATCHES()
453
- #define GRPC_STATS_INC_HTTP2_OP_CANCEL()
454
- #define GRPC_STATS_INC_HTTP2_OP_SEND_INITIAL_METADATA()
455
- #define GRPC_STATS_INC_HTTP2_OP_SEND_MESSAGE()
456
- #define GRPC_STATS_INC_HTTP2_OP_SEND_TRAILING_METADATA()
457
- #define GRPC_STATS_INC_HTTP2_OP_RECV_INITIAL_METADATA()
458
- #define GRPC_STATS_INC_HTTP2_OP_RECV_MESSAGE()
459
- #define GRPC_STATS_INC_HTTP2_OP_RECV_TRAILING_METADATA()
460
- #define GRPC_STATS_INC_HTTP2_SETTINGS_WRITES()
461
- #define GRPC_STATS_INC_HTTP2_PINGS_SENT()
462
- #define GRPC_STATS_INC_HTTP2_WRITES_BEGUN()
463
- #define GRPC_STATS_INC_HTTP2_WRITES_OFFLOADED()
464
- #define GRPC_STATS_INC_HTTP2_WRITES_CONTINUED()
465
- #define GRPC_STATS_INC_HTTP2_PARTIAL_WRITES()
466
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_INITIAL_WRITE()
467
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_START_NEW_STREAM()
468
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_MESSAGE()
469
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_INITIAL_METADATA()
470
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_TRAILING_METADATA()
471
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_RETRY_SEND_PING()
472
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_CONTINUE_PINGS()
473
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_GOAWAY_SENT()
474
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_RST_STREAM()
475
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_CLOSE_FROM_API()
476
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_STREAM_FLOW_CONTROL()
477
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL()
478
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SEND_SETTINGS()
479
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_SETTINGS_ACK()
480
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_BDP_ESTIMATOR_PING()
481
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_SETTING()
482
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_FLOW_CONTROL_UNSTALLED_BY_UPDATE()
483
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_APPLICATION_PING()
484
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_KEEPALIVE_PING()
485
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_TRANSPORT_FLOW_CONTROL_UNSTALLED()
486
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_PING_RESPONSE()
487
- #define GRPC_STATS_INC_HTTP2_INITIATE_WRITE_DUE_TO_FORCE_RST_STREAM()
488
- #define GRPC_STATS_INC_HTTP2_SPURIOUS_WRITES_BEGUN()
489
- #define GRPC_STATS_INC_HPACK_RECV_INDEXED()
490
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_INCIDX()
491
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_INCIDX_V()
492
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NOTIDX()
493
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NOTIDX_V()
494
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NVRIDX()
495
- #define GRPC_STATS_INC_HPACK_RECV_LITHDR_NVRIDX_V()
496
- #define GRPC_STATS_INC_HPACK_RECV_UNCOMPRESSED()
497
- #define GRPC_STATS_INC_HPACK_RECV_HUFFMAN()
498
- #define GRPC_STATS_INC_HPACK_RECV_BINARY()
499
- #define GRPC_STATS_INC_HPACK_RECV_BINARY_BASE64()
500
- #define GRPC_STATS_INC_HPACK_SEND_INDEXED()
501
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_INCIDX()
502
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_INCIDX_V()
503
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NOTIDX()
504
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NOTIDX_V()
505
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NVRIDX()
506
- #define GRPC_STATS_INC_HPACK_SEND_LITHDR_NVRIDX_V()
507
- #define GRPC_STATS_INC_HPACK_SEND_UNCOMPRESSED()
508
- #define GRPC_STATS_INC_HPACK_SEND_HUFFMAN()
509
- #define GRPC_STATS_INC_HPACK_SEND_BINARY()
510
- #define GRPC_STATS_INC_HPACK_SEND_BINARY_BASE64()
511
- #define GRPC_STATS_INC_COMBINER_LOCKS_INITIATED()
512
- #define GRPC_STATS_INC_COMBINER_LOCKS_SCHEDULED_ITEMS()
513
- #define GRPC_STATS_INC_COMBINER_LOCKS_SCHEDULED_FINAL_ITEMS()
514
- #define GRPC_STATS_INC_COMBINER_LOCKS_OFFLOADED()
515
- #define GRPC_STATS_INC_CALL_COMBINER_LOCKS_INITIATED()
516
- #define GRPC_STATS_INC_CALL_COMBINER_LOCKS_SCHEDULED_ITEMS()
517
- #define GRPC_STATS_INC_CALL_COMBINER_SET_NOTIFY_ON_CANCEL()
518
- #define GRPC_STATS_INC_CALL_COMBINER_CANCELLED()
519
- #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_SHORT_ITEMS()
520
- #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_LONG_ITEMS()
521
- #define GRPC_STATS_INC_EXECUTOR_SCHEDULED_TO_SELF()
522
- #define GRPC_STATS_INC_EXECUTOR_WAKEUP_INITIATED()
523
- #define GRPC_STATS_INC_EXECUTOR_QUEUE_DRAINED()
524
- #define GRPC_STATS_INC_EXECUTOR_PUSH_RETRIES()
525
- #define GRPC_STATS_INC_SERVER_REQUESTED_CALLS()
526
- #define GRPC_STATS_INC_SERVER_SLOWPATH_REQUESTS_QUEUED()
527
- #define GRPC_STATS_INC_CQ_EV_QUEUE_TRYLOCK_FAILURES()
528
- #define GRPC_STATS_INC_CQ_EV_QUEUE_TRYLOCK_SUCCESSES()
529
- #define GRPC_STATS_INC_CQ_EV_QUEUE_TRANSIENT_POP_FAILURES()
530
- #define GRPC_STATS_INC_CALL_INITIAL_SIZE(value)
531
- #define GRPC_STATS_INC_POLL_EVENTS_RETURNED(value)
532
- #define GRPC_STATS_INC_TCP_WRITE_SIZE(value)
533
- #define GRPC_STATS_INC_TCP_WRITE_IOV_SIZE(value)
534
- #define GRPC_STATS_INC_TCP_READ_SIZE(value)
535
- #define GRPC_STATS_INC_TCP_READ_OFFER(value)
536
- #define GRPC_STATS_INC_TCP_READ_OFFER_IOV_SIZE(value)
537
- #define GRPC_STATS_INC_HTTP2_SEND_MESSAGE_SIZE(value)
538
- #define GRPC_STATS_INC_HTTP2_SEND_INITIAL_METADATA_PER_WRITE(value)
539
- #define GRPC_STATS_INC_HTTP2_SEND_MESSAGE_PER_WRITE(value)
540
- #define GRPC_STATS_INC_HTTP2_SEND_TRAILING_METADATA_PER_WRITE(value)
541
- #define GRPC_STATS_INC_HTTP2_SEND_FLOWCTL_PER_WRITE(value)
542
- #define GRPC_STATS_INC_SERVER_CQS_CHECKED(value)
543
- #endif /* defined(GRPC_COLLECT_STATS) || !defined(NDEBUG) */
544
- extern const int grpc_stats_histo_buckets[13];
545
- extern const int grpc_stats_histo_start[13];
546
- extern const int* const grpc_stats_histo_bucket_boundaries[13];
547
- extern void (*const grpc_stats_inc_histogram[13])(int x);
138
+ GRPC_STATS_INC_HISTOGRAM( \
139
+ GRPC_STATS_HISTOGRAM_HTTP2_SEND_MESSAGE_SIZE, \
140
+ grpc_core::BucketForHistogramValue_16777216_20(static_cast<int>(value)))
141
+ namespace grpc_core {
142
+ int BucketForHistogramValue_32768_24(int value);
143
+ int BucketForHistogramValue_16777216_20(int value);
144
+ int BucketForHistogramValue_80_10(int value);
145
+ } // namespace grpc_core
146
+ extern const int grpc_stats_histo_buckets[7];
147
+ extern const int grpc_stats_histo_start[7];
148
+ extern const int* const grpc_stats_histo_bucket_boundaries[7];
149
+ extern int (*const grpc_stats_get_bucket[7])(int value);
548
150
 
549
151
  #endif /* GRPC_CORE_LIB_DEBUG_STATS_DATA_H */
@@ -148,8 +148,6 @@ void grpc_tracer_init() {
148
148
  parse(value.get());
149
149
  }
150
150
 
151
- void grpc_tracer_shutdown(void) {}
152
-
153
151
  int grpc_tracer_set_enabled(const char* name, int enabled) {
154
152
  return grpc_core::TraceFlagList::Set(name, enabled != 0);
155
153
  }
@@ -15,33 +15,25 @@
15
15
 
16
16
  #include "src/core/lib/event_engine/channel_args_endpoint_config.h"
17
17
 
18
- #include <string>
19
-
20
- #include "absl/types/variant.h"
21
-
22
- #include <grpc/event_engine/endpoint_config.h>
23
- #include <grpc/impl/codegen/grpc_types.h>
18
+ #include "absl/types/optional.h"
24
19
 
25
20
  #include "src/core/lib/channel/channel_args.h"
26
21
 
27
22
  namespace grpc_event_engine {
28
23
  namespace experimental {
29
24
 
30
- EndpointConfig::Setting ChannelArgsEndpointConfig::Get(
25
+ absl::optional<int> ChannelArgsEndpointConfig::GetInt(
31
26
  absl::string_view key) const {
32
- const grpc_arg* arg = grpc_channel_args_find(args_, std::string(key).c_str());
33
- if (arg == nullptr) {
34
- return absl::monostate();
35
- }
36
- switch (arg->type) {
37
- case GRPC_ARG_STRING:
38
- return absl::string_view(arg->value.string);
39
- case GRPC_ARG_INTEGER:
40
- return arg->value.integer;
41
- case GRPC_ARG_POINTER:
42
- return arg->value.pointer.p;
43
- }
44
- GPR_UNREACHABLE_CODE(return absl::monostate());
27
+ return args_.GetInt(key);
28
+ }
29
+
30
+ absl::optional<absl::string_view> ChannelArgsEndpointConfig::GetString(
31
+ absl::string_view key) const {
32
+ return args_.GetString(key);
33
+ }
34
+
35
+ void* ChannelArgsEndpointConfig::GetVoidPointer(absl::string_view key) const {
36
+ return args_.GetVoidPointer(key);
45
37
  }
46
38
 
47
39
  } // namespace experimental