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

Side by Side 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, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_ 5 #ifndef BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_
6 #define BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_ 6 #define BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 30 matching lines...) Expand all
41 41
42 private: 42 private:
43 uint64_t guid_; 43 uint64_t guid_;
44 44
45 // Deliberately copy-able. 45 // Deliberately copy-able.
46 }; 46 };
47 47
48 } // namespace trace_event 48 } // namespace trace_event
49 } // namespace base 49 } // namespace base
50 50
51 namespace std {
52
53 template <>
54 struct BASE_EXPORT hash<base::trace_event::MemoryAllocatorDumpGuid> {
55 size_t operator()(
56 const base::trace_event::MemoryAllocatorDumpGuid& guid) const {
57 return static_cast<size_t>(guid.ToUint64());
58 }
59 };
60
61 } // namespace std
62
51 #endif // BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_ 63 #endif // BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_
OLDNEW
« 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