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

Unified Diff: net/disk_cache/simple/simple_entry_impl.cc

Issue 2853263002: SimpleCache: histogram queuing delays and I/O portion of more ops. (Closed)
Patch Set: Add a couple more sync metrics. Created 3 years, 8 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 | net/disk_cache/simple/simple_synchronous_entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_entry_impl.cc
diff --git a/net/disk_cache/simple/simple_entry_impl.cc b/net/disk_cache/simple/simple_entry_impl.cc
index b60d7a405ac171a923efbc43aa50596a229e9011..0af01e1259b0fdbc4dca772c7c7d35ad8b411f75 100644
--- a/net/disk_cache/simple/simple_entry_impl.cc
+++ b/net/disk_cache/simple/simple_entry_impl.cc
@@ -717,7 +717,7 @@ void SimpleEntryImpl::OpenEntryInternal(bool have_index,
last_used_, last_modified_, data_size_, sparse_data_size_)));
Closure task =
base::Bind(&SimpleSynchronousEntry::OpenEntry, cache_type_, path_, key_,
- entry_hash_, have_index, results.get());
+ entry_hash_, have_index, start_time, results.get());
Closure reply =
base::Bind(&SimpleEntryImpl::CreationOperationComplete, this, callback,
start_time, base::Passed(&results), out_entry,
@@ -757,13 +757,9 @@ void SimpleEntryImpl::CreateEntryInternal(bool have_index,
std::unique_ptr<SimpleEntryCreationResults> results(
new SimpleEntryCreationResults(SimpleEntryStat(
last_used_, last_modified_, data_size_, sparse_data_size_)));
- Closure task = base::Bind(&SimpleSynchronousEntry::CreateEntry,
- cache_type_,
- path_,
- key_,
- entry_hash_,
- have_index,
- results.get());
+ Closure task =
+ base::Bind(&SimpleSynchronousEntry::CreateEntry, cache_type_, path_, key_,
+ entry_hash_, have_index, start_time, results.get());
Closure reply =
base::Bind(&SimpleEntryImpl::CreationOperationComplete, this, callback,
start_time, base::Passed(&results), out_entry,
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_synchronous_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698