| Index: net/spdy/hpack/hpack_huffman_table.cc
|
| diff --git a/net/spdy/hpack/hpack_huffman_table.cc b/net/spdy/hpack/hpack_huffman_table.cc
|
| index 0e3ca1b060eb5f49178ab881724dc6da60bf5b57..e4431f5affa1772f9344bc7a97f569f914cb9d15 100644
|
| --- a/net/spdy/hpack/hpack_huffman_table.cc
|
| +++ b/net/spdy/hpack/hpack_huffman_table.cc
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/logging.h"
|
| #include "base/numerics/safe_conversions.h"
|
| +#include "base/trace_event/memory_usage_estimator.h"
|
| #include "net/spdy/hpack/hpack_input_stream.h"
|
| #include "net/spdy/hpack/hpack_output_stream.h"
|
|
|
| @@ -318,4 +319,11 @@ bool HpackHuffmanTable::GenericDecodeString(HpackInputStream* in,
|
| return false;
|
| }
|
|
|
| +size_t HpackHuffmanTable::EstimateMemoryUsage() const {
|
| + return base::trace_event::EstimateMemoryUsage(decode_tables_) +
|
| + base::trace_event::EstimateMemoryUsage(decode_entries_) +
|
| + base::trace_event::EstimateMemoryUsage(code_by_id_) +
|
| + base::trace_event::EstimateMemoryUsage(length_by_id_);
|
| +}
|
| +
|
| } // namespace net
|
|
|