| 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> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <unordered_map> | 10 #include <unordered_map> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Define COUNT_RESIDENT_BYTES_SUPPORTED if platform supports counting of the | 25 // Define COUNT_RESIDENT_BYTES_SUPPORTED if platform supports counting of the |
| 26 // resident memory. | 26 // resident memory. |
| 27 #if (defined(OS_POSIX) && !defined(OS_NACL)) || defined(OS_WIN) | 27 #if (defined(OS_POSIX) && !defined(OS_NACL)) || defined(OS_WIN) |
| 28 #define COUNT_RESIDENT_BYTES_SUPPORTED | 28 #define COUNT_RESIDENT_BYTES_SUPPORTED |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 namespace base { | 31 namespace base { |
| 32 namespace trace_event { | 32 namespace trace_event { |
| 33 | 33 |
| 34 class MemoryDumpManager; | |
| 35 class MemoryDumpSessionState; | 34 class MemoryDumpSessionState; |
| 36 class TracedValue; | 35 class TracedValue; |
| 37 | 36 |
| 38 // ProcessMemoryDump is as a strongly typed container which holds the dumps | 37 // ProcessMemoryDump is as a strongly typed container which holds the dumps |
| 39 // produced by the MemoryDumpProvider(s) for a specific process. | 38 // produced by the MemoryDumpProvider(s) for a specific process. |
| 40 class BASE_EXPORT ProcessMemoryDump { | 39 class BASE_EXPORT ProcessMemoryDump { |
| 41 public: | 40 public: |
| 42 struct MemoryAllocatorDumpEdge { | 41 struct MemoryAllocatorDumpEdge { |
| 43 MemoryAllocatorDumpGuid source; | 42 MemoryAllocatorDumpGuid source; |
| 44 MemoryAllocatorDumpGuid target; | 43 MemoryAllocatorDumpGuid target; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // background mode are disabled for testing. | 213 // background mode are disabled for testing. |
| 215 static bool is_black_hole_non_fatal_for_testing_; | 214 static bool is_black_hole_non_fatal_for_testing_; |
| 216 | 215 |
| 217 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryDump); | 216 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryDump); |
| 218 }; | 217 }; |
| 219 | 218 |
| 220 } // namespace trace_event | 219 } // namespace trace_event |
| 221 } // namespace base | 220 } // namespace base |
| 222 | 221 |
| 223 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_ | 222 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_ |
| OLD | NEW |