stats_data.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright 2017 gRPC authors.
  3. *
  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
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  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. * Automatically generated by tools/codegen/core/gen_stats_data.py
  18. */
  19. #ifndef GRPC_CORE_LIB_DEBUG_STATS_DATA_H
  20. #define GRPC_CORE_LIB_DEBUG_STATS_DATA_H
  21. typedef enum {
  22. GRPC_STATS_COUNTER_CLIENT_CALLS_CREATED,
  23. GRPC_STATS_COUNTER_SERVER_CALLS_CREATED,
  24. GRPC_STATS_COUNTER_SYSCALL_WRITE,
  25. GRPC_STATS_COUNTER_SYSCALL_READ,
  26. GRPC_STATS_COUNTER_SYSCALL_POLL,
  27. GRPC_STATS_COUNTER_SYSCALL_WAIT,
  28. GRPC_STATS_COUNTER_COUNT
  29. } grpc_stats_counters;
  30. #define GRPC_STATS_INC_CLIENT_CALLS_CREATED(exec_ctx) \
  31. GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_CLIENT_CALLS_CREATED)
  32. #define GRPC_STATS_INC_SERVER_CALLS_CREATED(exec_ctx) \
  33. GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SERVER_CALLS_CREATED)
  34. #define GRPC_STATS_INC_SYSCALL_WRITE(exec_ctx) \
  35. GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_WRITE)
  36. #define GRPC_STATS_INC_SYSCALL_READ(exec_ctx) \
  37. GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_READ)
  38. #define GRPC_STATS_INC_SYSCALL_POLL(exec_ctx) \
  39. GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_POLL)
  40. #define GRPC_STATS_INC_SYSCALL_WAIT(exec_ctx) \
  41. GRPC_STATS_INC_COUNTER((exec_ctx), GRPC_STATS_COUNTER_SYSCALL_WAIT)
  42. extern const char *grpc_stats_counter_name[GRPC_STATS_COUNTER_COUNT];
  43. #endif /* GRPC_CORE_LIB_DEBUG_STATS_DATA_H */