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

Unified Diff: net/http/http_server_properties_impl.cc

Issue 1537463004: AlternativeServiceServers - Added couple of histograms to measure if (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments to Patch Set 1 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_impl.cc
diff --git a/net/http/http_server_properties_impl.cc b/net/http/http_server_properties_impl.cc
index bd4e38e88e02f8ae3562f2569b0d6fe398586857..bbd15e4cfd258c46fdc16ccc727b867221634678 100644
--- a/net/http/http_server_properties_impl.cc
+++ b/net/http/http_server_properties_impl.cc
@@ -10,6 +10,7 @@
#include "base/location.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
+#include "base/metrics/histogram_macros.h"
#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
@@ -56,6 +57,16 @@ void HttpServerPropertiesImpl::InitializeSpdyServers(
void HttpServerPropertiesImpl::InitializeAlternativeServiceServers(
AlternativeServiceMap* alternative_service_map) {
+ int32 size_diff =
+ alternative_service_map->size() - alternative_service_map_.size();
+ if (size_diff > 0) {
+ UMA_HISTOGRAM_COUNTS("Net.AlternativeServiceServers.MorePrefsEntries",
+ size_diff);
+ } else {
+ UMA_HISTOGRAM_COUNTS(
+ "Net.AlternativeServiceServers.MoreOrEqualCacheEntries", -size_diff);
+ }
+
AlternativeServiceMap new_alternative_service_map(
AlternativeServiceMap::NO_AUTO_EVICT);
// Add the entries from persisted data.
« 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