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

Unified Diff: net/spdy/http2_priority_dependencies.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/http2_priority_dependencies.h
diff --git a/net/spdy/http2_priority_dependencies.h b/net/spdy/http2_priority_dependencies.h
index d356a79586a63a3307f27c59555b9ddc6908c3c1..5a5aed3554ca220ce0096b5567d4f6343bb9454c 100644
--- a/net/spdy/http2_priority_dependencies.h
+++ b/net/spdy/http2_priority_dependencies.h
@@ -47,6 +47,9 @@ class NET_EXPORT_PRIVATE Http2PriorityDependencies {
std::vector<DependencyUpdate> OnStreamUpdate(SpdyStreamId id,
SpdyPriority new_priority);
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
+
private:
// The requirements for the internal data structure for this class are:
// a) Constant time insertion of entries at the end of the list,

Powered by Google App Engine
This is Rietveld 408576698