diff options
Diffstat (limited to 'src/core/lib/debug')
-rw-r--r-- | src/core/lib/debug/trace.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/lib/debug/trace.h b/src/core/lib/debug/trace.h index 20bb623e78..274849d157 100644 --- a/src/core/lib/debug/trace.h +++ b/src/core/lib/debug/trace.h @@ -61,9 +61,8 @@ class TraceFlag { #endif } - private: - static void List(); - + // Only to be used for testing purposes. Tracers should usually be set using + // the static Set function void set_enabled(bool enabled) { #ifdef GRPC_THREADSAFE_TRACER gpr_atm_no_barrier_store(&value_, enabled); @@ -72,6 +71,9 @@ class TraceFlag { #endif } + private: + static void List(); + static TraceFlag *root_tracer_; TraceFlag *next_tracer_; const char *const name_; |