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_PROCESS_MEMORY_DUMP_H_ | 5 #ifndef BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_ |
6 #define BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_ | 6 #define BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/base_export.h" | 12 #include "base/base_export.h" |
11 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
12 #include "base/containers/small_map.h" | 14 #include "base/containers/small_map.h" |
| 15 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
15 #include "base/trace_event/memory_allocator_dump.h" | 18 #include "base/trace_event/memory_allocator_dump.h" |
16 #include "base/trace_event/memory_allocator_dump_guid.h" | 19 #include "base/trace_event/memory_allocator_dump_guid.h" |
17 #include "base/trace_event/memory_dump_session_state.h" | 20 #include "base/trace_event/memory_dump_session_state.h" |
18 #include "base/trace_event/process_memory_maps.h" | 21 #include "base/trace_event/process_memory_maps.h" |
19 #include "base/trace_event/process_memory_totals.h" | 22 #include "base/trace_event/process_memory_totals.h" |
| 23 #include "build/build_config.h" |
20 | 24 |
21 // Define COUNT_RESIDENT_BYTES_SUPPORTED if platform supports counting of the | 25 // Define COUNT_RESIDENT_BYTES_SUPPORTED if platform supports counting of the |
22 // resident memory. | 26 // resident memory. |
23 // TODO(crbug.com/542671): COUNT_RESIDENT_BYTES_SUPPORTED is disabled on iOS | 27 // TODO(crbug.com/542671): COUNT_RESIDENT_BYTES_SUPPORTED is disabled on iOS |
24 // as it cause memory corruption on iOS 9.0+ devices. | 28 // as it cause memory corruption on iOS 9.0+ devices. |
25 #if defined(OS_POSIX) && !defined(OS_NACL) && !defined(OS_IOS) | 29 #if defined(OS_POSIX) && !defined(OS_NACL) && !defined(OS_IOS) |
26 #define COUNT_RESIDENT_BYTES_SUPPORTED | 30 #define COUNT_RESIDENT_BYTES_SUPPORTED |
27 #endif | 31 #endif |
28 | 32 |
29 namespace base { | 33 namespace base { |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // Keeps track of relationships between MemoryAllocatorDump(s). | 182 // Keeps track of relationships between MemoryAllocatorDump(s). |
179 std::vector<MemoryAllocatorDumpEdge> allocator_dumps_edges_; | 183 std::vector<MemoryAllocatorDumpEdge> allocator_dumps_edges_; |
180 | 184 |
181 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryDump); | 185 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryDump); |
182 }; | 186 }; |
183 | 187 |
184 } // namespace trace_event | 188 } // namespace trace_event |
185 } // namespace base | 189 } // namespace base |
186 | 190 |
187 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_ | 191 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_ |
OLD | NEW |