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

Unified Diff: base/trace_event/memory_allocator_dump_guid.h

Issue 2911263003: [memory-infra] Add method to override importance of ownership edges (Closed)
Patch Set: Created 3 years, 7 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 | base/trace_event/process_memory_dump.h » ('j') | base/trace_event/process_memory_dump.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/memory_allocator_dump_guid.h
diff --git a/base/trace_event/memory_allocator_dump_guid.h b/base/trace_event/memory_allocator_dump_guid.h
index b6472c66129bda37c95817984c796e6a6be1dfff..de3f561180f64708cfd1c4edb3a6fb990b00709d 100644
--- a/base/trace_event/memory_allocator_dump_guid.h
+++ b/base/trace_event/memory_allocator_dump_guid.h
@@ -48,4 +48,16 @@ class BASE_EXPORT MemoryAllocatorDumpGuid {
} // namespace trace_event
} // namespace base
+namespace std {
+
+template <>
+struct BASE_EXPORT hash<base::trace_event::MemoryAllocatorDumpGuid> {
+ size_t operator()(
+ const base::trace_event::MemoryAllocatorDumpGuid& guid) const {
+ return static_cast<size_t>(guid.ToUint64());
+ }
+};
+
+} // namespace std
+
#endif // BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_
« no previous file with comments | « no previous file | base/trace_event/process_memory_dump.h » ('j') | base/trace_event/process_memory_dump.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698