diff options
author | 2017-08-31 19:13:16 -0700 | |
---|---|---|
committer | 2017-08-31 19:13:16 -0700 | |
commit | 2bf86404e0ed5128e4bea89ed78807d6ae6773c6 (patch) | |
tree | e16c8585e6599e142e015ad49654952124f2cbbe /src/core/lib/surface/init.c | |
parent | b2170fe91f06f24868e69ba4fa11fbdffd7680fd (diff) | |
parent | ccad38227f63797318d7cffcba8a2df783394ccd (diff) |
Merge pull request #11873 from ctiller/stats
Add a simple stats framework to gRPC C core
Diffstat (limited to 'src/core/lib/surface/init.c')
-rw-r--r-- | src/core/lib/surface/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lib/surface/init.c b/src/core/lib/surface/init.c index d199ac060e..898476daee 100644 --- a/src/core/lib/surface/init.c +++ b/src/core/lib/surface/init.c @@ -28,6 +28,7 @@ #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/channel/connected_channel.h" #include "src/core/lib/channel/handshaker_registry.h" +#include "src/core/lib/debug/stats.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/http/parser.h" #include "src/core/lib/iomgr/combiner.h" @@ -118,6 +119,7 @@ void grpc_init(void) { gpr_mu_lock(&g_init_mu); if (++g_initializations == 1) { gpr_time_init(); + grpc_stats_init(); grpc_slice_intern_init(); grpc_mdctx_global_init(); grpc_channel_init_init(); @@ -186,6 +188,7 @@ void grpc_shutdown(void) { grpc_mdctx_global_shutdown(&exec_ctx); grpc_handshaker_factory_registry_shutdown(&exec_ctx); grpc_slice_intern_shutdown(); + grpc_stats_shutdown(); } gpr_mu_unlock(&g_init_mu); grpc_exec_ctx_finish(&exec_ctx); |