diff options
author | Craig Tiller <ctiller@google.com> | 2015-04-29 13:46:17 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-04-29 13:46:17 -0700 |
commit | 455253f52cb184208b0fb6bba87f5774230fb7f3 (patch) | |
tree | eb873d6ec32c266f54208dc96353958c8b495a8e /src/core/surface | |
parent | 27aa7afb728ad83a742f429dc47266900d6fd449 (diff) | |
parent | dba5e0f96be51cce1343a31b5bd3734342642a29 (diff) |
Merge branch 'one-read' into swappy
Diffstat (limited to 'src/core/surface')
-rw-r--r-- | src/core/surface/call.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index d21bfaa592..e7767cc22d 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -34,6 +34,7 @@ #include "src/core/surface/call.h" #include "src/core/channel/channel_stack.h" #include "src/core/iomgr/alarm.h" +#include "src/core/profiling/timers.h" #include "src/core/support/string.h" #include "src/core/surface/byte_buffer_queue.h" #include "src/core/surface/channel.h" @@ -694,6 +695,7 @@ static int add_slice_to_message(grpc_call *call, gpr_slice slice) { static void call_on_done_recv(void *pc, int success) { grpc_call *call = pc; size_t i; + GRPC_TIMER_MARK(CALL_ON_DONE_RECV_BEGIN, 0); lock(call); call->receiving = 0; if (success) { @@ -734,6 +736,7 @@ static void call_on_done_recv(void *pc, int success) { unlock(call); GRPC_CALL_INTERNAL_UNREF(call, "receiving", 0); + GRPC_TIMER_MARK(CALL_ON_DONE_RECV_END, 0); } static grpc_mdelem_list chain_metadata_from_app(grpc_call *call, size_t count, |