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

Unified Diff: net/spdy/hpack/hpack_entry.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
Index: net/spdy/hpack/hpack_entry.h
diff --git a/net/spdy/hpack/hpack_entry.h b/net/spdy/hpack/hpack_entry.h
index 12d3f068e9db8a2f38b503a5b7aaf6db643a9f1f..bb637d22c34376d8e3e2bd59a4ef7d272a4dcbc3 100644
--- a/net/spdy/hpack/hpack_entry.h
+++ b/net/spdy/hpack/hpack_entry.h
@@ -76,6 +76,9 @@ class NET_EXPORT_PRIVATE HpackEntry {
int64_t time_added() const { return time_added_; }
void set_time_added(int64_t now) { time_added_ = now; }
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
+
private:
enum EntryType {
LOOKUP,

Powered by Google App Engine
This is Rietveld 408576698