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 #include "content/child/web_process_memory_dump_impl.h" | 5 #include "content/child/web_process_memory_dump_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/memory/discardable_memory.h" | 9 #include "base/memory/discardable_memory.h" |
10 #include "base/trace_event/process_memory_dump.h" | 10 #include "base/trace_event/process_memory_dump.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 blink::WebMemoryAllocatorDump* | 155 blink::WebMemoryAllocatorDump* |
156 WebProcessMemoryDumpImpl::CreateDiscardableMemoryAllocatorDump( | 156 WebProcessMemoryDumpImpl::CreateDiscardableMemoryAllocatorDump( |
157 const std::string& name, | 157 const std::string& name, |
158 base::DiscardableMemory* discardable) { | 158 base::DiscardableMemory* discardable) { |
159 base::trace_event::MemoryAllocatorDump* dump = | 159 base::trace_event::MemoryAllocatorDump* dump = |
160 discardable->CreateMemoryAllocatorDump(name.c_str(), | 160 discardable->CreateMemoryAllocatorDump(name.c_str(), |
161 process_memory_dump_); | 161 process_memory_dump_); |
162 return createWebMemoryAllocatorDump(dump); | 162 return createWebMemoryAllocatorDump(dump); |
163 } | 163 } |
164 | 164 |
| 165 base::trace_event::ProcessMemoryDump* |
| 166 WebProcessMemoryDumpImpl::getProcessMemoryDump() { |
| 167 return process_memory_dump_; |
| 168 } |
| 169 |
165 } // namespace content | 170 } // namespace content |
OLD | NEW |