summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-05 22:51:49 +0000
committerjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-05 22:51:49 +0000
commit3fa4dc09b5897c11303a49fe5e893dbb0c21fc01 (patch)
tree041917d9c6245b67be8ae3237ee665faa95acf0c
parent5a27c4e572667598b5c1d4b5cd6febdc719b2405 (diff)
downloadchromium_src-3fa4dc09b5897c11303a49fe5e893dbb0c21fc01.zip
chromium_src-3fa4dc09b5897c11303a49fe5e893dbb0c21fc01.tar.gz
chromium_src-3fa4dc09b5897c11303a49fe5e893dbb0c21fc01.tar.bz2
Add two UMA histograms for DNS prefetching
I have a more complex change list, and wanted to be able to carefully constrast the before-and-after impact. r=mbelshe Review URL: http://codereview.chromium.org/9166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4833 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/net/dns_host_info.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/net/dns_host_info.cc b/chrome/browser/net/dns_host_info.cc
index 777f72d..96251f5 100644
--- a/chrome/browser/net/dns_host_info.cc
+++ b/chrome/browser/net/dns_host_info.cc
@@ -77,7 +77,7 @@ void DnsHostInfo::SetAssignedState() {
state_ = ASSIGNED;
queue_duration_ = GetDuration();
DLogResultsStats("DNS Prefetch assigned");
- DHISTOGRAM_TIMES(L"DNS.PrefetchQueue", queue_duration_);
+ UMA_HISTOGRAM_TIMES(L"DNS.PrefetchQueue", queue_duration_);
}
void DnsHostInfo::SetPendingDeleteState() {
@@ -169,7 +169,7 @@ DnsBenefit DnsHostInfo::AcruePrefetchBenefits(DnsHostInfo* later_host_info) {
if (later_host_info->resolve_duration_ > kMaxNonNetworkDnsLookupDuration) {
// Our precache effort didn't help since HTTP stack hit the network.
- DHISTOGRAM_TIMES(L"DNS.PrefetchCacheEviction", resolve_duration_);
+ UMA_HISTOGRAM_TIMES(L"DNS.PrefetchCacheEviction", resolve_duration_);
DLogResultsStats("DNS PrefetchCacheEviction");
return PREFETCH_CACHE_EVICTION;
}