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

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

Issue 2382443006: Sync MDP: implement MemoryDumpProvider
Patch Set: Created 4 years, 3 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/syncable/entry_kernel.cc ('k') | sql/connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/syncable_id.h
diff --git a/components/sync/syncable/syncable_id.h b/components/sync/syncable/syncable_id.h
index f96fb83f185a7ed13df6dfa0691caabc518e372d..1bb74cf6a14778b533b8b6890f3f9d95ba423e7c 100644
--- a/components/sync/syncable/syncable_id.h
+++ b/components/sync/syncable/syncable_id.h
@@ -12,6 +12,7 @@
#include <string>
#include "base/containers/hash_tables.h"
+#include "base/trace_event/memory_usage_estimators.h"
namespace base {
class StringValue;
@@ -96,6 +97,10 @@ class Id {
std::string s_;
};
+inline size_t EstimateMemoryUsage(const Id& id) {
+ return base::trace_event::EstimateMemoryUsage(id.value());
+}
+
} // namespace syncable
} // namespace syncer
« no previous file with comments | « components/sync/syncable/entry_kernel.cc ('k') | sql/connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698