summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/net')
-rw-r--r--chrome/browser/net/dns_host_info.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/chrome/browser/net/dns_host_info.cc b/chrome/browser/net/dns_host_info.cc
index 8946f7f..45e088b 100644
--- a/chrome/browser/net/dns_host_info.cc
+++ b/chrome/browser/net/dns_host_info.cc
@@ -9,6 +9,7 @@
#include <algorithm>
#include <string>
+#include "base/field_trial.h"
#include "base/format_macros.h"
#include "base/histogram.h"
#include "base/logging.h"
@@ -120,7 +121,18 @@ void DnsHostInfo::SetFoundState() {
state_ = FOUND;
resolve_duration_ = GetDuration();
if (kMaxNonNetworkDnsLookupDuration <= resolve_duration_) {
- UMA_HISTOGRAM_LONG_TIMES("DNS.PrefetchFoundNameL", resolve_duration_);
+ UMA_HISTOGRAM_CUSTOM_TIMES("DNS.PrefetchResolution", resolve_duration_,
+ kMaxNonNetworkDnsLookupDuration, TimeDelta::FromMinutes(15), 100);
+
+ static bool use_ipv6_histogram(FieldTrialList::Find("IPv6_Probe") &&
+ !FieldTrialList::Find("IPv6_Probe")->group_name().empty());
+ if (use_ipv6_histogram) {
+ UMA_HISTOGRAM_CUSTOM_TIMES(
+ FieldTrial::MakeName("DNS.PrefetchResolution", "IPv6_Probe"),
+ resolve_duration_, kMaxNonNetworkDnsLookupDuration,
+ TimeDelta::FromMinutes(15), 100);
+ }
+
// Record potential beneficial time, and maybe we'll get a cache hit.
// We keep the maximum, as the warming we did earlier may still be
// helping with a cache upstream in DNS resolution.