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

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: Fixes. 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
« no previous file with comments | « no previous file | base/trace_event/process_memory_dump.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
32 bool empty() const { return guid_ == 0u; } 32 bool empty() const { return guid_ == 0u; }
33 33
34 bool operator==(const MemoryAllocatorDumpGuid& other) const { 34 bool operator==(const MemoryAllocatorDumpGuid& other) const {
35 return guid_ == other.guid_; 35 return guid_ == other.guid_;
36 } 36 }
37 37
38 bool operator!=(const MemoryAllocatorDumpGuid& other) const { 38 bool operator!=(const MemoryAllocatorDumpGuid& other) const {
39 return !(*this == other); 39 return !(*this == other);
40 } 40 }
41 41
42 bool operator<(const MemoryAllocatorDumpGuid& other) const {
43 return guid_ < other.guid_;
44 }
45
42 private: 46 private:
43 uint64_t guid_; 47 uint64_t guid_;
44 48
45 // Deliberately copy-able. 49 // Deliberately copy-able.
46 }; 50 };
47 51
48 } // namespace trace_event 52 } // namespace trace_event
49 } // namespace base 53 } // namespace base
50 54
51 #endif // BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_ 55 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698