diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-10 22:44:30 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-10 22:44:30 +0000 |
commit | 4bd032206e2fb62ad18a81b047de3582243d0a30 (patch) | |
tree | 2a2f11d4cb8c6464b5764f9907b9c87e12bb2396 /net | |
parent | 36293156c9f0c074bd0ca45a472020fb16fb2047 (diff) | |
download | chromium_src-4bd032206e2fb62ad18a81b047de3582243d0a30.zip chromium_src-4bd032206e2fb62ad18a81b047de3582243d0a30.tar.gz chromium_src-4bd032206e2fb62ad18a81b047de3582243d0a30.tar.bz2 |
Revert 68899 - Disk cache: Remove the request throttling experiment.
This is intended for the beta/stable branch.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/5628006
TBR=rvargas@google.com
Review URL: http://codereview.chromium.org/5700005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68900 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-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 944706b..96f8723 100644 --- a/net/disk_cache/backend_impl.cc +++ b/net/disk_cache/backend_impl.cc @@ -179,7 +179,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; } // ------------------------------------------------------------------------ @@ -1214,6 +1219,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; |