aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/profiling
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-08-24 09:43:45 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-08-24 09:43:45 -0700
commitdfd3a8f7a566aaf59b676caf583d4048b8e9ab5b (patch)
tree9e5ce91db69faeb1d3ea43f50aba25c711f90d22 /src/core/lib/profiling
parent8ef0eda856a52cc549b0f83c5836fe6fc22482f8 (diff)
Merge combiner and exec_ctx execution better
Allows exec_ctx callbacks to be called while a combiner is executing. Also allows guaranteeing direct execution of callbacks from combiners, which should allow reducing cpu burn for up/down stack interactions in the future.
Diffstat (limited to 'src/core/lib/profiling')
-rw-r--r--src/core/lib/profiling/timers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/lib/profiling/timers.h b/src/core/lib/profiling/timers.h
index 621cdbf656..ea0cbca977 100644
--- a/src/core/lib/profiling/timers.h
+++ b/src/core/lib/profiling/timers.h
@@ -34,6 +34,8 @@
#ifndef GRPC_CORE_LIB_PROFILING_TIMERS_H
#define GRPC_CORE_LIB_PROFILING_TIMERS_H
+#include <stdio.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -56,14 +58,17 @@ void gpr_timer_set_enabled(int enabled);
/* No profiling. No-op all the things. */
#define GPR_TIMER_MARK(tag, important) \
do { \
+ /*printf("- %s\n", tag);*/ \
} while (0)
#define GPR_TIMER_BEGIN(tag, important) \
do { \
+ /*printf("%s {\n", tag);*/ \
} while (0)
#define GPR_TIMER_END(tag, important) \
do { \
+ /*printf("} // %s\n", tag);*/ \
} while (0)
#else /* at least one profiler requested... */