diff options
author | 2018-02-01 10:23:48 -0800 | |
---|---|---|
committer | 2018-02-01 10:23:48 -0800 | |
commit | f4a94b61266dc468af2de213ea50b997a39b7508 (patch) | |
tree | 2e00d47c7bb8994ed32a371b086f6692e7bd424b /src/core/lib/iomgr/exec_ctx.cc | |
parent | 3d63a67501e8730bbad5a7a4546787f871263b55 (diff) | |
parent | ce1cfea12d3f8aa566e6e7d8adec60c10e6b6700 (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.cc | 3 |
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; } |