diff options
author | 2015-04-13 07:00:07 -0700 | |
---|---|---|
committer | 2015-04-13 07:00:07 -0700 | |
commit | c914c4a71ac55f9fb7eb0bd86b39b27ad7ed6fbf (patch) | |
tree | 5e3c17b39515478ef18749e271f3840e0c89ecef /src/core/surface/init.c | |
parent | 2a9102c0b56d087ea2b69333ab961cfd30443bf6 (diff) |
Infrastructure for timer insertion, logging, and testing.
Diffstat (limited to 'src/core/surface/init.c')
-rw-r--r-- | src/core/surface/init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/surface/init.c b/src/core/surface/init.c index d4f0eb40e8..5d0eaadf1c 100644 --- a/src/core/surface/init.c +++ b/src/core/surface/init.c @@ -32,10 +32,11 @@ */ #include <grpc/grpc.h> -#include "src/core/iomgr/iomgr.h" +#include "src/core/channel/channel_stack.h" #include "src/core/debug/trace.h" +#include "src/core/iomgr/iomgr.h" #include "src/core/statistics/census_interface.h" -#include "src/core/channel/channel_stack.h" +#include "src/core/statistics/timers.h" #include "src/core/surface/call.h" #include "src/core/surface/init.h" #include "src/core/surface/surface_trace.h" @@ -63,6 +64,7 @@ void grpc_init(void) { grpc_tracer_init("GRPC_TRACE"); grpc_iomgr_init(); census_init(); + grpc_timers_log_global_init(); } gpr_mu_unlock(&g_init_mu); } @@ -72,6 +74,7 @@ void grpc_shutdown(void) { if (--g_initializations == 0) { grpc_iomgr_shutdown(); census_shutdown(); + grpc_timers_log_global_destroy(); } gpr_mu_unlock(&g_init_mu); } |