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

Unified Diff: net/proxy/proxy_server.cc

Issue 2665283003: Improve memory estimate of SpdySessionPool in net/ MemoryDumpProvider. (Closed)
Patch Set: Created 3 years, 11 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/proxy/proxy_server.cc
diff --git a/net/proxy/proxy_server.cc b/net/proxy/proxy_server.cc
index 76fa0d6224f346fe45f7eacf9c45c255b5252e1d..dc875eb770d06360cb85e593a39816d880a3d4a2 100644
--- a/net/proxy/proxy_server.cc
+++ b/net/proxy/proxy_server.cc
@@ -209,6 +209,10 @@ ProxyServer::Scheme ProxyServer::GetSchemeFromURI(const std::string& scheme) {
return GetSchemeFromURIInternal(scheme);
}
+size_t ProxyServer::EstimateMemoryUsage() const {
+ return HostPortPair::EstimateMemoryUsage(host_port_pair_);
Bence 2017/02/02 14:15:19 1.It's just a string, how bad can it get? Few doz
xunjieli 2017/02/02 14:53:42 dskiba@ can correct me if I am wrong. My understan
Bence 2017/02/02 15:05:08 Ah okay, that makes perfect sense. Thank you for
+}
+
// static
ProxyServer ProxyServer::FromSchemeHostAndPort(
Scheme scheme,

Powered by Google App Engine
This is Rietveld 408576698