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

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

Issue 2452713003: [Sync] Implement MemoryDumpProvider. (Closed)
Patch Set: Fix presumit; fix Windows; git cl format Created 4 years, 1 month 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/parent_child_index.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 d847ea745280134760bac4df653093986432f13d..28e2b6b0b9359da70fae5f8211261acc5b4e702a 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_estimator.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
« no previous file with comments | « components/sync/syncable/parent_child_index.cc ('k') | sql/connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698