From a9371b3fd7dcb180add4a74d19c12b3c7921af39 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Mon, 27 Sep 2010 18:02:29 +0000 Subject: 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 --- net/disk_cache/backend_impl.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net') 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 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; -- cgit v1.1