diff options
author | Craig Tiller <ctiller@google.com> | 2017-02-24 17:02:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-24 17:02:21 -0800 |
commit | 5825b6922ed1bcd93206fa25d97a6e6fd02e41f0 (patch) | |
tree | 08a7e94131aba66256b20b4e7fa47d4434a36f85 /src/core | |
parent | f2cf3d94a1a46db2ebb2c13c3476e58ecdae6006 (diff) | |
parent | b325a1dd4af3f3d3443da3e0ac0f007162c63772 (diff) |
Merge pull request #9849 from ctiller/bm_chttp2
Add benchmarks for HTTP2 HPACK encoding
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ext/transport/chttp2/transport/hpack_encoder.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ext/transport/chttp2/transport/hpack_encoder.c b/src/core/ext/transport/chttp2/transport/hpack_encoder.c index 63df8e135f..84586cd998 100644 --- a/src/core/ext/transport/chttp2/transport/hpack_encoder.c +++ b/src/core/ext/transport/chttp2/transport/hpack_encoder.c @@ -173,6 +173,7 @@ static void add_header_data(framer_state *st, grpc_slice slice) { static uint8_t *add_tiny_header_data(framer_state *st, size_t len) { ensure_space(st, len); + st->stats->header_bytes += len; return grpc_slice_buffer_tiny_add(st->output, len); } |