aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/exec_ctx.cc
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2018-02-01 10:23:48 -0800
committerGravatar GitHub <noreply@github.com>2018-02-01 10:23:48 -0800
commitf4a94b61266dc468af2de213ea50b997a39b7508 (patch)
tree2e00d47c7bb8994ed32a371b086f6692e7bd424b /src/core/lib/iomgr/exec_ctx.cc
parent3d63a67501e8730bbad5a7a4546787f871263b55 (diff)
parentce1cfea12d3f8aa566e6e7d8adec60c10e6b6700 (diff)
Merge pull request #14264 from yang-g/to_scope
Deprecate GPR_TIMER_BEGIN/END and replace with GPR_TIMER_SCOPE.
Diffstat (limited to 'src/core/lib/iomgr/exec_ctx.cc')
-rw-r--r--src/core/lib/iomgr/exec_ctx.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/exec_ctx.cc b/src/core/lib/iomgr/exec_ctx.cc
index e005437e0a..03c833ff07 100644
--- a/src/core/lib/iomgr/exec_ctx.cc
+++ b/src/core/lib/iomgr/exec_ctx.cc
@@ -113,7 +113,7 @@ void ExecCtx::GlobalInit(void) {
bool ExecCtx::Flush() {
bool did_something = 0;
- GPR_TIMER_BEGIN("grpc_exec_ctx_flush", 0);
+ GPR_TIMER_SCOPE("grpc_exec_ctx_flush", 0);
for (;;) {
if (!grpc_closure_list_empty(closure_list_)) {
grpc_closure* c = closure_list_.head;
@@ -130,7 +130,6 @@ bool ExecCtx::Flush() {
}
}
GPR_ASSERT(combiner_data_.active_combiner == nullptr);
- GPR_TIMER_END("grpc_exec_ctx_flush", 0);
return did_something;
}