diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 22:03:39 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 22:03:39 +0000 |
commit | 08952a67556f2d50c1d394ecb2008c6cf01c98c4 (patch) | |
tree | cfcac9ce92009841892ed07d9d83e56ca51ec733 /net/disk_cache | |
parent | 1889dc1b1226cac60273a2e28ad36e019292be21 (diff) | |
download | chromium_src-08952a67556f2d50c1d394ecb2008c6cf01c98c4.zip chromium_src-08952a67556f2d50c1d394ecb2008c6cf01c98c4.tar.gz chromium_src-08952a67556f2d50c1d394ecb2008c6cf01c98c4.tar.bz2 |
Revert 62645 - Disk cache: Remove the request throttling experiment.
This is intended for the beta/stable branch.
BUG=none
TEST=none
TBR=gavinp
Review URL: http://codereview.chromium.org/3788002
TBR=rvargas@google.com
Review URL: http://codereview.chromium.org/3775009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62655 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r-- | net/disk_cache/backend_impl.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc index adffbc7..e02b79d 100644 --- a/net/disk_cache/backend_impl.cc +++ b/net/disk_cache/backend_impl.cc @@ -174,7 +174,12 @@ bool SetFieldTrialInfo(int size_group) { std::string group1 = base::StringPrintf("CacheSizeGroup_%d", size_group); trial1->AppendGroup(group1, base::FieldTrial::kAllRemainingProbability); - return false; + scoped_refptr<base::FieldTrial> trial2 = + new base::FieldTrial("CacheThrottle", 100); + int group2a = trial2->AppendGroup("CacheThrottle_On", 10); // 10 % in. + trial2->AppendGroup("CacheThrottle_Off", 10); // 10 % control. + + return trial2->group() == group2a; } // ------------------------------------------------------------------------ @@ -1209,6 +1214,10 @@ void BackendImpl::OnOperationCompleted(base::TimeDelta elapsed_time) { if (cache_type() != net::DISK_CACHE) return; + UMA_HISTOGRAM_TIMES(base::FieldTrial::MakeName("DiskCache.TotalIOTime", + "CacheThrottle").data(), + elapsed_time); + if (!throttle_requests_) return; |