Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1387)

Unified Diff: net/http2/hpack/decoder/hpack_decoder_string_buffer.h

Issue 2665283003: Improve memory estimate of SpdySessionPool in net/ MemoryDumpProvider. (Closed)
Patch Set: rebased Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/host_port_pair.cc ('k') | net/http2/hpack/decoder/hpack_decoder_string_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http2/hpack/decoder/hpack_decoder_string_buffer.h
diff --git a/net/http2/hpack/decoder/hpack_decoder_string_buffer.h b/net/http2/hpack/decoder/hpack_decoder_string_buffer.h
index 85449415860096c9ed73b1ff4c310df1a6e5587b..2f60068e608bc57b34f99fe395523dc6e8c098ed 100644
--- a/net/http2/hpack/decoder/hpack_decoder_string_buffer.h
+++ b/net/http2/hpack/decoder/hpack_decoder_string_buffer.h
@@ -62,6 +62,9 @@ class NET_EXPORT_PRIVATE HpackDecoderStringBuffer {
Backing backing_for_testing() const { return backing_; }
void OutputDebugStringTo(std::ostream& out) const;
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
+
private:
// Storage for the string being buffered, if buffering is necessary
// (e.g. if Huffman encoded, buffer_ is storage for the decoded string).
« no previous file with comments | « net/base/host_port_pair.cc ('k') | net/http2/hpack/decoder/hpack_decoder_string_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698