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

Unified Diff: net/spdy/http2_priority_dependencies.cc

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/spdy/http2_priority_dependencies.h ('k') | net/spdy/spdy_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/http2_priority_dependencies.cc
diff --git a/net/spdy/http2_priority_dependencies.cc b/net/spdy/http2_priority_dependencies.cc
index 9cbfba07c1540cf4a42c39e8575c864e01d17a84..b473164790bdde1cc3d70897c50169bd5920d93f 100644
--- a/net/spdy/http2_priority_dependencies.cc
+++ b/net/spdy/http2_priority_dependencies.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "net/spdy/http2_priority_dependencies.h"
+#include "net/spdy/platform/api/spdy_estimate_memory_usage.h"
namespace net {
@@ -157,4 +158,10 @@ void Http2PriorityDependencies::OnStreamDestruction(SpdyStreamId id) {
entry_by_stream_id_.erase(emit);
}
+size_t Http2PriorityDependencies::EstimateMemoryUsage() const {
+ return SpdyEstimateMemoryUsage(id_priority_lists_);
+ // TODO(xunjieli): https://crbug.com/690015. Include |entry_by_stream_id_|
+ // when memory_usage_estimator.h supports std::list::iterator.
+}
+
} // namespace net
« no previous file with comments | « net/spdy/http2_priority_dependencies.h ('k') | net/spdy/spdy_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698