diff options
author | Craig Tiller <ctiller@google.com> | 2015-10-09 17:00:38 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-10-09 17:00:38 -0700 |
commit | 8e30e25b14acf9e0fcd62eae96ad1c57280787f2 (patch) | |
tree | e8202f98fc9e4846a60b7da8c200b3803df11343 /src | |
parent | 0ba432d445b6415e04b8b9f20cb093b0a22a4361 (diff) |
Fix asan compile error
Diffstat (limited to 'src')
-rw-r--r-- | src/core/profiling/timers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/profiling/timers.h b/src/core/profiling/timers.h index 1ea7f71dc3..0d112e7248 100644 --- a/src/core/profiling/timers.h +++ b/src/core/profiling/timers.h @@ -91,6 +91,7 @@ void gpr_timer_end(const char *tagstr, int important, const char *file, #ifdef __cplusplus } +#if (defined(GRPC_STAP_PROFILER) + defined(GRPC_BASIC_PROFILER)) namespace grpc { class ProfileScope { public: @@ -106,6 +107,11 @@ class ProfileScope { #define GPR_TIMER_SCOPE(tag, important) \ ::grpc::ProfileScope _profile_scope_##__LINE__((tag), (important)) +#else +#define GPR_TIMER_SCOPE(tag, important) \ + do { \ + } while (false) +#endif #endif #endif /* GRPC_CORE_PROFILING_TIMERS_H */ |