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

Unified Diff: net/disk_cache/simple/simple_synchronous_entry.h

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 | « net/disk_cache/simple/simple_entry_impl.cc ('k') | net/disk_cache/simple/simple_synchronous_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_synchronous_entry.h
diff --git a/net/disk_cache/simple/simple_synchronous_entry.h b/net/disk_cache/simple/simple_synchronous_entry.h
index 3b37c095a690591f89a8b2a344d124e1d2e7cfc4..c244f9224cd71f0747bbd7b10b09c9aae736707e 100644
--- a/net/disk_cache/simple/simple_synchronous_entry.h
+++ b/net/disk_cache/simple/simple_synchronous_entry.h
@@ -118,11 +118,14 @@ class SimpleSynchronousEntry {
// Opens a disk cache entry on disk. The |key| parameter is optional, if empty
// the operation may be slower. The |entry_hash| parameter is required.
// |had_index| is provided only for histograms.
+ // |time_enqueued| is when this operation was added to the I/O thread pool,
+ // and is provided only for histograms.
static void OpenEntry(net::CacheType cache_type,
const base::FilePath& path,
const std::string& key,
uint64_t entry_hash,
bool had_index,
+ const base::TimeTicks& time_enqueued,
SimpleEntryCreationResults* out_results);
static void CreateEntry(net::CacheType cache_type,
@@ -130,6 +133,7 @@ class SimpleSynchronousEntry {
const std::string& key,
uint64_t entry_hash,
bool had_index,
+ const base::TimeTicks& time_enqueued,
SimpleEntryCreationResults* out_results);
// Deletes an entry from the file system without affecting the state of the
« no previous file with comments | « net/disk_cache/simple/simple_entry_impl.cc ('k') | net/disk_cache/simple/simple_synchronous_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698