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

Unified Diff: net/spdy/buffered_spdy_framer.h

Issue 2665283003: Improve memory estimate of SpdySessionPool in net/ MemoryDumpProvider. (Closed)
Patch Set: Address Bence comments 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
Index: net/spdy/buffered_spdy_framer.h
diff --git a/net/spdy/buffered_spdy_framer.h b/net/spdy/buffered_spdy_framer.h
index ffd03a126e9b09f75359a2eec664e0f888ffd3af..e492990342cf062a78fdc4a0c6b85d099e41d14c 100644
--- a/net/spdy/buffered_spdy_framer.h
+++ b/net/spdy/buffered_spdy_framer.h
@@ -235,6 +235,9 @@ class NET_EXPORT_PRIVATE BufferedSpdyFramer
int frames_received() const { return frames_received_; }
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
+
private:
void InitHeaderStreaming(SpdyStreamId stream_id);
@@ -269,6 +272,9 @@ class NET_EXPORT_PRIVATE BufferedSpdyFramer
SpdyStreamId last_accepted_stream_id;
SpdyErrorCode error_code;
std::string debug_data;
+
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
};
std::unique_ptr<GoAwayFields> goaway_fields_;

Powered by Google App Engine
This is Rietveld 408576698