OLD | NEW |
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_HEAP_PROFILER_ALLOCATION_CONTEXT_H_ | 5 #ifndef BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_H_ |
6 #define BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_H_ | 6 #define BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_H_ |
7 | 7 |
| 8 #include <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 | 10 |
10 #include "base/base_export.h" | 11 #include "base/base_export.h" |
11 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 namespace trace_event { | 15 namespace trace_event { |
15 | 16 |
16 // When heap profiling is enabled, tracing keeps track of the allocation | 17 // When heap profiling is enabled, tracing keeps track of the allocation |
17 // context for each allocation intercepted. It is generated by the | 18 // context for each allocation intercepted. It is generated by the |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 }; | 88 }; |
88 | 89 |
89 template <> | 90 template <> |
90 struct BASE_EXPORT hash<base::trace_event::AllocationContext> { | 91 struct BASE_EXPORT hash<base::trace_event::AllocationContext> { |
91 size_t operator()(const base::trace_event::AllocationContext& context) const; | 92 size_t operator()(const base::trace_event::AllocationContext& context) const; |
92 }; | 93 }; |
93 | 94 |
94 } // BASE_HASH_NAMESPACE | 95 } // BASE_HASH_NAMESPACE |
95 | 96 |
96 #endif // BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_H_ | 97 #endif // BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_H_ |
OLD | NEW |