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

Unified Diff: net/http/http_server_properties_manager.cc

Issue 1506353008: HttpServerProperties - Added a histogram to track the AlternateProtocolServers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed typos Created 5 years 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 | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties_manager.cc
diff --git a/net/http/http_server_properties_manager.cc b/net/http/http_server_properties_manager.cc
index b8e3e0c5fc3078710a75ea0b573a60d6bbbf547e..4ccb0ef0a073f22ab4025ecea1ce5750be952cac 100644
--- a/net/http/http_server_properties_manager.cc
+++ b/net/http/http_server_properties_manager.cc
@@ -884,6 +884,8 @@ void HttpServerPropertiesManager::UpdatePrefsFromCacheOnNetworkThread(
new AlternativeServiceMap(kMaxAlternateProtocolHostsToPersist);
const AlternativeServiceMap& map =
http_server_properties_impl_->alternative_service_map();
+ UMA_HISTOGRAM_COUNTS("Net.CountOfAlternateProtocolServers.Memory",
+ map.size());
count = 0;
typedef std::map<std::string, bool> CanonicalHostPersistedMap;
CanonicalHostPersistedMap persisted_map;
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698