From 07718b8e2f84d0af9ffc348a21d1b8a7d3eb5a8c Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Sat, 21 Nov 2015 14:06:45 -0800 Subject: [PATCH] Fixes for profiling --- src/core/transport/metadata.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/transport/metadata.c b/src/core/transport/metadata.c index d031efc2264..fc587c5f85b 100644 --- a/src/core/transport/metadata.c +++ b/src/core/transport/metadata.c @@ -430,6 +430,7 @@ grpc_mdstr *grpc_mdstr_from_buffer(const gpr_uint8 *buf, size_t length) { if (ss == NULL) break; if (ss->hash == hash && GPR_SLICE_LENGTH(ss->slice) == length && 0 == memcmp(buf, GPR_SLICE_START_PTR(ss->slice), length)) { + GPR_TIMER_END("grpc_mdstr_from_buffer", 0); return ss; } } @@ -575,6 +576,7 @@ grpc_mdelem *grpc_mdelem_from_metadata_strings(grpc_mdstr *mkey, smd = g_static_mdtab[idx]; if (smd == NULL) break; if (smd->key == mkey && smd->value == mvalue) { + GPR_TIMER_END("grpc_mdelem_from_metadata_strings", 0); return smd; } }