Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(955)

Unified Diff: net/disk_cache/backend_impl.cc

Issue 3452024: Disk cache: Add a little more tracing for the stress test... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/backend_impl.cc
===================================================================
--- net/disk_cache/backend_impl.cc (revision 60547)
+++ net/disk_cache/backend_impl.cc (working copy)
@@ -778,6 +778,7 @@
TimeTicks start = TimeTicks::Now();
uint32 hash = Hash(key);
+ Trace("Open hash 0x%x", hash);
EntryImpl* cache_entry = MatchEntry(key, hash, false);
if (!cache_entry) {
@@ -806,6 +807,7 @@
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_]);
@@ -1582,6 +1584,7 @@
continue;
}
+ DCHECK_EQ(hash & mask_, cache_entry->entry()->Data()->hash & mask_);
if (cache_entry->IsSameEntry(key, hash)) {
if (!cache_entry->Update())
cache_entry = NULL;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698