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

Unified Diff: net/quic/core/quic_server_id.cc

Issue 2807493002: Track STL containers in QuicStreamFactory::DumpMemoryStats (Closed)
Patch Set: address zhongyi@ comment Created 3 years, 8 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/quic/core/quic_server_id.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_server_id.cc
diff --git a/net/quic/core/quic_server_id.cc b/net/quic/core/quic_server_id.cc
index 6239706104c9d9a3946795ce3b29c17c5a3495c6..8efb8815b4842cfa47a2bf9042e58cf6803f89f4 100644
--- a/net/quic/core/quic_server_id.cc
+++ b/net/quic/core/quic_server_id.cc
@@ -6,6 +6,7 @@
#include <tuple>
+#include "net/quic/platform/api/quic_estimate_memory_usage.h"
#include "net/quic/platform/api/quic_str_cat.h"
using std::string;
@@ -43,4 +44,8 @@ string QuicServerId::ToString() const {
(privacy_mode_ == PRIVACY_MODE_ENABLED ? "/private" : ""));
}
+size_t QuicServerId::EstimateMemoryUsage() const {
+ return QuicEstimateMemoryUsage(host_port_pair_);
+}
+
} // namespace net
« no previous file with comments | « net/quic/core/quic_server_id.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698