aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/census
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-06-28 14:09:08 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-06-28 14:09:08 -0700
commit346da5f3465ec554dbf77cd712c1e95a2ed3758a (patch)
tree6d5aeaaf5ea6adeb04244593c49e82d7b2d24757 /src/core/ext/census
parentc074408bd3ff79c1eff55f4c6d0f8f6ddc852abb (diff)
parentfe466b0e170120263811ab12a4406c7438201481 (diff)
Merge github.com:grpc/grpc into consistent_client_count
Diffstat (limited to 'src/core/ext/census')
-rw-r--r--src/core/ext/census/grpc_filter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ext/census/grpc_filter.c b/src/core/ext/census/grpc_filter.c
index 72e4e5427e..f51d850e01 100644
--- a/src/core/ext/census/grpc_filter.c
+++ b/src/core/ext/census/grpc_filter.c
@@ -45,6 +45,7 @@
#include "src/core/ext/census/census_interface.h"
#include "src/core/ext/census/census_rpc_stats.h"
#include "src/core/lib/channel/channel_stack.h"
+#include "src/core/lib/profiling/timers.h"
#include "src/core/lib/transport/static_metadata.h"
typedef struct call_data {
@@ -92,6 +93,7 @@ static void client_start_transport_op(grpc_exec_ctx *exec_ctx,
static void server_on_done_recv(grpc_exec_ctx *exec_ctx, void *ptr,
grpc_error *error) {
+ GPR_TIMER_BEGIN("census-server:server_on_done_recv", 0);
grpc_call_element *elem = ptr;
call_data *calld = elem->call_data;
channel_data *chand = elem->channel_data;
@@ -99,6 +101,7 @@ static void server_on_done_recv(grpc_exec_ctx *exec_ctx, void *ptr,
extract_and_annotate_method_tag(calld->recv_initial_metadata, calld, chand);
}
calld->on_done_recv->cb(exec_ctx, calld->on_done_recv->cb_arg, error);
+ GPR_TIMER_END("census-server:server_on_done_recv", 0);
}
static void server_mutate_op(grpc_call_element *elem,