aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-11-21 14:06:45 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-11-21 14:07:11 -0800
commit07718b8e2f84d0af9ffc348a21d1b8a7d3eb5a8c (patch)
treec10ff0ed9c03b2af2d6863ba226ecc2c4fb05a69
parent0927c70180b3877bae03b3edb849c960f8a4b8a7 (diff)
Fixes for profiling
-rw-r--r--src/core/transport/metadata.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/transport/metadata.c b/src/core/transport/metadata.c
index d031efc226..fc587c5f85 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;
}
}