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

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

Issue 2452713003: [Sync] Implement MemoryDumpProvider. (Closed)
Patch Set: Created 4 years, 2 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: components/sync/syncable/syncable_id.h
diff --git a/components/sync/syncable/syncable_id.h b/components/sync/syncable/syncable_id.h
index d847ea745280134760bac4df653093986432f13d..947cc652644362b187a3401488e90f8a0cc6ba8d 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/estimate_memory_usage.h"
namespace base {
class StringValue;
@@ -97,6 +98,10 @@ class Id {
std::string s_;
};
+inline size_t EstimateMemoryUsage(const Id& id) {
+ return base::trace_event::EstimateMemoryUsage(id.value());
+}
+
} // namespace syncable
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698