diff options
author | 2015-02-20 15:58:05 -0800 | |
---|---|---|
committer | 2015-02-20 15:58:05 -0800 | |
commit | 46863cffb631c68cf302c387e4520bbbe263a43c (patch) | |
tree | 4170963c7f4e93f0bcca46302437e4b2da6f0339 /src/core/debug/trace.c | |
parent | e23555a72989571dedb9f051e4153923f7cb5394 (diff) |
Make it possible to compile out tracing
Diffstat (limited to 'src/core/debug/trace.c')
-rw-r--r-- | src/core/debug/trace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/debug/trace.c b/src/core/debug/trace.c index 157a4d5f34..cdbe168fc8 100644 --- a/src/core/debug/trace.c +++ b/src/core/debug/trace.c @@ -39,6 +39,7 @@ #include <grpc/support/log.h> #include "src/core/support/env.h" +#if GRPC_ENABLE_TRACING gpr_uint32 grpc_trace_bits; static void add(const char *beg, const char *end, char ***ss, size_t *ns) { @@ -102,4 +103,8 @@ void grpc_init_trace_bits() { gpr_free(e); } } +#else +void grpc_init_trace_bits() { +} +#endif |