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

Unified Diff: net/spdy/spdy_write_queue.cc

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
« net/spdy/spdy_protocol.h ('K') | « net/spdy/spdy_write_queue.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_write_queue.cc
diff --git a/net/spdy/spdy_write_queue.cc b/net/spdy/spdy_write_queue.cc
index 50df9440a777541ffcf4cbc66c45eb4f08243a02..26427185dd8be0e5ac22ed91f58312c030c0d95a 100644
--- a/net/spdy/spdy_write_queue.cc
+++ b/net/spdy/spdy_write_queue.cc
@@ -155,4 +155,10 @@ void SpdyWriteQueue::Clear() {
removing_writes_ = false;
}
+size_t SpdyWriteQueue::EstimateMemoryUsage() const {
+ // TODO(xunjieli): https://crbug.com/669108. return allocation from |queue_|
+ // once memory_usage_estimator.h supports std::deque.
+ return 0;
DmitrySkiba 2017/02/06 18:02:34 std::deque is supported now, so this should be EMU
xunjieli 2017/02/08 15:42:50 Done.
+}
+
} // namespace net
« net/spdy/spdy_protocol.h ('K') | « net/spdy/spdy_write_queue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698