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

Unified Diff: components/sync_driver/glue/sync_backend_host_core.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
« no previous file with comments | « no previous file | components/sync_driver/glue/sync_backend_host_core.cc » ('j') | sync/syncable/directory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/glue/sync_backend_host_core.h
diff --git a/components/sync_driver/glue/sync_backend_host_core.h b/components/sync_driver/glue/sync_backend_host_core.h
index d93d4192e683470d5c97ba6101ed2cc37dd6572c..da0bad3b4ae6339e61da92e84d4c13d8231f2dfd 100644
--- a/components/sync_driver/glue/sync_backend_host_core.h
+++ b/components/sync_driver/glue/sync_backend_host_core.h
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/timer/timer.h"
+#include "base/trace_event/memory_dump_provider.h"
#include "components/invalidation/public/invalidation.h"
#include "components/sync_driver/glue/sync_backend_host_impl.h"
#include "components/sync_driver/system_encryptor.h"
@@ -94,6 +95,7 @@ struct DoConfigureSyncerTypes {
class SyncBackendHostCore
: public base::RefCountedThreadSafe<SyncBackendHostCore>,
+ public base::trace_event::MemoryDumpProvider,
public syncer::SyncEncryptionHandler::Observer,
public syncer::SyncManager::Observer,
public syncer::TypeDebugInfoObserver {
@@ -103,6 +105,10 @@ class SyncBackendHostCore
bool has_sync_setup_completed,
const base::WeakPtr<SyncBackendHostImpl>& backend);
+ // MemoryDumpProvider implementation.
+ bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
+ base::trace_event::ProcessMemoryDump* pmd) override;
+
// SyncManager::Observer implementation. The Core just acts like an air
// traffic controller here, forwarding incoming messages to appropriate
// landing threads.
« no previous file with comments | « no previous file | components/sync_driver/glue/sync_backend_host_core.cc » ('j') | sync/syncable/directory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698