aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/fling
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-02-02 09:12:11 -0800
committerGravatar GitHub <noreply@github.com>2018-02-02 09:12:11 -0800
commit4c0640ebd65f2661664f882c673707c1c5807ccd (patch)
tree4a002106829115e970939568154ed0175e337572 /test/core/fling
parent0dbb00eef0e53c87dcd6958839ec0d532cdf858c (diff)
parente5b0a504167fbc6277d034709aa29ea07fa09a00 (diff)
Merge branch 'master' into gpr_review3
Diffstat (limited to 'test/core/fling')
-rw-r--r--test/core/fling/client.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/core/fling/client.cc b/test/core/fling/client.cc
index b6d6cb9518..66810975fd 100644
--- a/test/core/fling/client.cc
+++ b/test/core/fling/client.cc
@@ -74,7 +74,7 @@ static void init_ping_pong_request(void) {
}
static void step_ping_pong_request(void) {
- GPR_TIMER_BEGIN("ping_pong", 1);
+ GPR_TIMER_SCOPE("ping_pong", 1);
grpc_slice host = grpc_slice_from_static_string("localhost");
call = grpc_channel_create_call(
channel, nullptr, GRPC_PROPAGATE_DEFAULTS, cq,
@@ -87,7 +87,6 @@ static void step_ping_pong_request(void) {
grpc_call_unref(call);
grpc_byte_buffer_destroy(response_payload_recv);
call = nullptr;
- GPR_TIMER_END("ping_pong", 1);
}
static void init_ping_pong_stream(void) {
@@ -117,13 +116,12 @@ static void init_ping_pong_stream(void) {
}
static void step_ping_pong_stream(void) {
+ GPR_TIMER_SCOPE("ping_pong", 1);
grpc_call_error error;
- GPR_TIMER_BEGIN("ping_pong", 1);
error = grpc_call_start_batch(call, stream_step_ops, 2, (void*)1, nullptr);
GPR_ASSERT(GRPC_CALL_OK == error);
grpc_completion_queue_next(cq, gpr_inf_future(GPR_CLOCK_REALTIME), nullptr);
grpc_byte_buffer_destroy(response_payload_recv);
- GPR_TIMER_END("ping_pong", 1);
}
static double now(void) {