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

Unified Diff: sync/internal_api/public/sync_manager.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/internal_api/public/sync_manager.h
diff --git a/sync/internal_api/public/sync_manager.h b/sync/internal_api/public/sync_manager.h
index 1e9cb34b2a4bdeda4f5e0f8305eb690cab2603e1..8e8d7d926a96a1353f1eeafcc3265df664fdd4f3 100644
--- a/sync/internal_api/public/sync_manager.h
+++ b/sync/internal_api/public/sync_manager.h
@@ -37,6 +37,12 @@
class GURL;
+namespace base {
+namespace trace_event {
+class ProcessMemoryDump;
+}
+}
+
namespace sync_pb {
class EncryptedData;
} // namespace sync_pb
@@ -344,6 +350,9 @@ class SYNC_EXPORT SyncManager {
// Status-related getter. May be called on any thread.
virtual SyncStatus GetDetailedStatus() const = 0;
+ // Adds memory usage statistics to |pmd| for chrome://tracing.
+ virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) = 0;
+
// Call periodically from a database-safe thread to persist recent changes
// to the syncapi model.
virtual void SaveChanges() = 0;

Powered by Google App Engine
This is Rietveld 408576698