diff options
author | 2017-06-08 15:57:09 -0700 | |
---|---|---|
committer | 2017-06-08 17:50:01 -0700 | |
commit | f0c46e360b3e740aea254b5adc0c9dfeae31243a (patch) | |
tree | 82d6576caeb7db25f6bd4f825bb4f5054521994b /src/core/lib/iomgr/error.h | |
parent | a4bc791fd806896f8cae5cbe377acd56f9c01d31 (diff) |
Rework error and closure tracing
Diffstat (limited to 'src/core/lib/iomgr/error.h')
-rw-r--r-- | src/core/lib/iomgr/error.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/error.h b/src/core/lib/iomgr/error.h index 1ce916f2ec..729f4eb70c 100644 --- a/src/core/lib/iomgr/error.h +++ b/src/core/lib/iomgr/error.h @@ -26,6 +26,8 @@ #include <grpc/status.h> #include <grpc/support/time.h> +#include "src/core/lib/debug/trace.h" + #ifdef __cplusplus extern "C" { #endif @@ -36,6 +38,8 @@ extern "C" { typedef struct grpc_error grpc_error; +extern grpc_tracer_flag grpc_trace_error_refcount; + typedef enum { /// 'errno' from the operating system GRPC_ERROR_INT_ERRNO, @@ -149,8 +153,7 @@ grpc_error *grpc_error_create(const char *file, int line, grpc_slice desc, grpc_error_create(__FILE__, __LINE__, grpc_slice_from_copied_string(desc), \ errs, count) -// #define GRPC_ERROR_REFCOUNT_DEBUG -#ifdef GRPC_ERROR_REFCOUNT_DEBUG +#ifndef NDEBUG grpc_error *grpc_error_ref(grpc_error *err, const char *file, int line, const char *func); void grpc_error_unref(grpc_error *err, const char *file, int line, |