From 0163460bd602ad77f15caa7a9efff23491efa934 Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Wed, 15 Apr 2015 02:09:52 -0700 Subject: Mark creation of call, performing ops on channel --- src/cpp/client/channel.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cpp/client/channel.cc') diff --git a/src/cpp/client/channel.cc b/src/cpp/client/channel.cc index 5380d3a232..72123abbc8 100644 --- a/src/cpp/client/channel.cc +++ b/src/cpp/client/channel.cc @@ -41,6 +41,7 @@ #include #include +#include "src/core/profiling/timers.h" #include "src/cpp/proto/proto_utils.h" #include #include @@ -65,6 +66,7 @@ Call Channel::CreateCall(const RpcMethod& method, ClientContext* context, ? target_.c_str() : context->authority().c_str(), context->RawDeadline()); + GRPC_TIMER_MARK(CALL_CREATED,c_call); context->set_call(c_call); return Call(c_call, this, cq); } @@ -73,9 +75,11 @@ void Channel::PerformOpsOnCall(CallOpBuffer* buf, Call* call) { static const size_t MAX_OPS = 8; size_t nops = MAX_OPS; grpc_op ops[MAX_OPS]; + GRPC_TIMER_MARK(PERFORM_OPS_BEGIN, call->call()); buf->FillOps(ops, &nops); GPR_ASSERT(GRPC_CALL_OK == grpc_call_start_batch(call->call(), ops, nops, buf)); + GRPC_TIMER_MARK(PERFORM_OPS_END, call->call()); } } // namespace grpc -- cgit v1.2.3