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

Unified Diff: sync/syncable/parent_child_index.h

Issue 2084243004: [WIP][tracing] Add memory dump provider for sync Directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 4 years, 5 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: sync/syncable/parent_child_index.h
diff --git a/sync/syncable/parent_child_index.h b/sync/syncable/parent_child_index.h
index 540234c62b29e81b16557739a626dad8a7a06e14..ea501707fce4b85b683eeb1d777ea49a424d7b6e 100644
--- a/sync/syncable/parent_child_index.h
+++ b/sync/syncable/parent_child_index.h
@@ -60,6 +60,9 @@ class SYNC_EXPORT ParentChildIndex {
// Returns all siblings of the entry.
const OrderedChildSet* GetSiblings(EntryKernel* e) const;
+ // Returns the memory usage of the index.
+ size_t MemoryUsage() const;
+
private:
friend class ParentChildIndexTest;

Powered by Google App Engine
This is Rietveld 408576698