aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-10-14 13:01:01 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-10-14 13:01:01 -0700
commitff08f33e094640caf8e8ce5d8d2a2f82c3cc4f3b (patch)
tree047a93c896f9bb8b2aedb714cb41e3ed8a8251c8 /src/core/lib
parent6a721b5b3f253b86eac3f34c66e6b2d47bb08c9e (diff)
Pass call start time into the call stack via grpc_call_element_args.
Diffstat (limited to 'src/core/lib')
-rw-r--r--src/core/lib/channel/channel_stack.c1
-rw-r--r--src/core/lib/channel/channel_stack.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lib/channel/channel_stack.c b/src/core/lib/channel/channel_stack.c
index 205496f2f2..2c5367901d 100644
--- a/src/core/lib/channel/channel_stack.c
+++ b/src/core/lib/channel/channel_stack.c
@@ -179,6 +179,7 @@ grpc_error *grpc_call_stack_init(
/* init per-filter data */
grpc_error *first_error = GRPC_ERROR_NONE;
+ args.start_time = gpr_now(GPR_CLOCK_MONOTONIC);
for (i = 0; i < count; i++) {
args.call_stack = call_stack;
args.server_transport_data = transport_server_data;
diff --git a/src/core/lib/channel/channel_stack.h b/src/core/lib/channel/channel_stack.h
index 5b46cd32a3..27f3be7b29 100644
--- a/src/core/lib/channel/channel_stack.h
+++ b/src/core/lib/channel/channel_stack.h
@@ -75,6 +75,7 @@ typedef struct {
const void *server_transport_data;
grpc_call_context_element *context;
grpc_mdstr *path;
+ gpr_timespec start_time;
gpr_timespec deadline;
} grpc_call_element_args;