diff options
author | gavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-27 19:56:14 +0000 |
---|---|---|
committer | gavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-27 19:56:14 +0000 |
commit | ce0a5a975e1f662d565db36bc890a3c55f325bf7 (patch) | |
tree | 85f2f2af4ed6f00d5313ad314c0387d76f069e74 /net | |
parent | 243887b36ec8b3ac78c72b3327efee75886f4997 (diff) | |
download | chromium_src-ce0a5a975e1f662d565db36bc890a3c55f325bf7.zip chromium_src-ce0a5a975e1f662d565db36bc890a3c55f325bf7.tar.gz chromium_src-ce0a5a975e1f662d565db36bc890a3c55f325bf7.tar.bz2 |
Turn on prefetching again
In issue 8965032, I rename the Prerender field trial to make way for
the Prefetch one. This CL turns the key, and makes prefetching active
again in a 50/50 field trial in the Dev/Canary channels.
BUG=107897
Review URL: http://codereview.chromium.org/9018034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/http/http_cache_transaction.cc | 7 | ||||
-rw-r--r-- | net/url_request/url_request_http_job.cc | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc index d9f4f49..f5f7d3c 100644 --- a/net/http/http_cache_transaction.cc +++ b/net/http/http_cache_transaction.cc @@ -939,6 +939,13 @@ int HttpCache::Transaction::DoAddToEntryComplete(int result) { const base::TimeDelta entry_lock_wait = base::TimeTicks::Now() - entry_lock_waiting_since_; UMA_HISTOGRAM_TIMES("HttpCache.EntryLockWait", entry_lock_wait); + static const bool prefetching_fieldtrial = + base::FieldTrialList::TrialExists("Prefetch"); + if (prefetching_fieldtrial) { + UMA_HISTOGRAM_TIMES( + base::FieldTrial::MakeName("HttpCache.EntryLockWait", "Prefetch"), + entry_lock_wait); + } static const bool prerendering_fieldtrial = base::FieldTrialList::TrialExists("Prerender"); if (prerendering_fieldtrial) { diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index 5b6b986f..3a4e9da 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -1179,6 +1179,14 @@ void URLRequestHttpJob::RecordTimer() { to_start); } + static const bool use_prefetch_histogram = + base::FieldTrialList::TrialExists("Prefetch"); + if (use_prefetch_histogram) { + UMA_HISTOGRAM_MEDIUM_TIMES( + base::FieldTrial::MakeName("Net.HttpTimeToFirstByte", + "Prefetch"), + to_start); + } static const bool use_prerender_histogram = base::FieldTrialList::TrialExists("Prerender"); if (use_prerender_histogram) { |