summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-27 18:02:29 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-27 18:02:29 +0000
commita9371b3fd7dcb180add4a74d19c12b3c7921af39 (patch)
tree726c9b576bf95173bb1bd629dc0638680f293af6 /net
parent5b3df18415dfb4d02be4541be7127932018a90a0 (diff)
downloadchromium_src-a9371b3fd7dcb180add4a74d19c12b3c7921af39.zip
chromium_src-a9371b3fd7dcb180add4a74d19c12b3c7921af39.tar.gz
chromium_src-a9371b3fd7dcb180add4a74d19c12b3c7921af39.tar.bz2
Disk cache: Add a little more tracing for the stress test
tool. BUG=55605 TEST=none Review URL: http://codereview.chromium.org/3452024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/disk_cache/backend_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc
index 66c789e..4a4f7ea 100644
--- a/net/disk_cache/backend_impl.cc
+++ b/net/disk_cache/backend_impl.cc
@@ -780,6 +780,7 @@ EntryImpl* BackendImpl::OpenEntryImpl(const std::string& key) {
TimeTicks start = TimeTicks::Now();
uint32 hash = Hash(key);
+ Trace("Open hash 0x%x", hash);
EntryImpl* cache_entry = MatchEntry(key, hash, false);
if (!cache_entry) {
@@ -808,6 +809,7 @@ EntryImpl* BackendImpl::CreateEntryImpl(const std::string& key) {
TimeTicks start = TimeTicks::Now();
uint32 hash = Hash(key);
+ Trace("Create hash 0x%x", hash);
scoped_refptr<EntryImpl> parent;
Addr entry_address(data_->table[hash & mask_]);
@@ -1585,6 +1587,7 @@ EntryImpl* BackendImpl::MatchEntry(const std::string& key, uint32 hash,
continue;
}
+ DCHECK_EQ(hash & mask_, cache_entry->entry()->Data()->hash & mask_);
if (cache_entry->IsSameEntry(key, hash)) {
if (!cache_entry->Update())
cache_entry = NULL;