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

Unified Diff: components/sync/syncable/directory.h

Issue 2949923004: Reland: [Sync] Record sync memory usage in histogram broken by datatypes (Closed)
Patch Set: Fix linker error Created 3 years, 6 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 | « components/sync/protocol/proto_memory_estimations.cc ('k') | components/sync/syncable/directory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/directory.h
diff --git a/components/sync/syncable/directory.h b/components/sync/syncable/directory.h
index 7e9ff063750dc009aca8864b0fea23ff88101ed4..5ac329648efedf03fb6891a4403db27166bf4768 100644
--- a/components/sync/syncable/directory.h
+++ b/components/sync/syncable/directory.h
@@ -292,6 +292,10 @@ class Directory {
// Adds memory statistics to |pmd| for chrome://tracing.
void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd);
+ // Estimates memory usage of entries and corresponding indices of type
+ // |model_type|.
+ size_t EstimateMemoryUsageByType(ModelType model_type);
+
// Gets/Increments transaction version of a model type. Must be called when
// holding kernel mutex.
int64_t GetTransactionVersion(ModelType type) const;
« no previous file with comments | « components/sync/protocol/proto_memory_estimations.cc ('k') | components/sync/syncable/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698