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

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

Issue 2661333002: Track SimpleCache memory usage in net/ MemoryDumpProvider (Closed)
Patch Set: Pure rebase before addressing comments Created 3 years, 10 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
Index: net/disk_cache/simple/simple_index.h
diff --git a/net/disk_cache/simple/simple_index.h b/net/disk_cache/simple/simple_index.h
index 1adb0ecc48a3f4e177fc392eb0b1726a5e1d9d1c..7a89b561fb353674dcf13375e38dc3ac4c89c8fc 100644
--- a/net/disk_cache/simple/simple_index.h
+++ b/net/disk_cache/simple/simple_index.h
@@ -58,6 +58,9 @@ class NET_EXPORT_PRIVATE EntryMetadata {
void Serialize(base::Pickle* pickle) const;
bool Deserialize(base::PickleIterator* it);
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
jkarlin 2017/02/21 16:23:29 Why did you remove this? Shouldn't this result in
xunjieli 2017/02/21 19:44:13 This is not SimpleIndex. This is EntryMetaData.
+
static base::TimeDelta GetLowerEpsilonForTimeComparisons() {
return base::TimeDelta::FromSeconds(1);
}
@@ -166,6 +169,9 @@ class NET_EXPORT_PRIVATE SimpleIndex
IndexInitMethod init_method() const { return init_method_; }
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
+
private:
friend class SimpleIndexTest;
FRIEND_TEST_ALL_PREFIXES(SimpleIndexTest, IndexSizeCorrectOnMerge);

Powered by Google App Engine
This is Rietveld 408576698