| 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 "gin/v8_isolate_memory_dump_provider.h" | 5 #include "gin/v8_isolate_memory_dump_provider.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 8 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| 9 #include "base/trace_event/memory_dump_manager.h" | 11 #include "base/trace_event/memory_dump_manager.h" |
| 10 #include "base/trace_event/process_memory_dump.h" | 12 #include "base/trace_event/process_memory_dump.h" |
| 11 #include "gin/public/isolate_holder.h" | 13 #include "gin/public/isolate_holder.h" |
| 12 #include "v8/include/v8.h" | 14 #include "v8/include/v8.h" |
| 13 | 15 |
| 14 namespace gin { | 16 namespace gin { |
| 15 | 17 |
| 16 V8IsolateMemoryDumpProvider::V8IsolateMemoryDumpProvider( | 18 V8IsolateMemoryDumpProvider::V8IsolateMemoryDumpProvider( |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 } | 161 } |
| 160 | 162 |
| 161 if (did_dump_object_stats) { | 163 if (did_dump_object_stats) { |
| 162 process_memory_dump->AddOwnershipEdge( | 164 process_memory_dump->AddOwnershipEdge( |
| 163 process_memory_dump->CreateAllocatorDump(object_name_prefix)->guid(), | 165 process_memory_dump->CreateAllocatorDump(object_name_prefix)->guid(), |
| 164 process_memory_dump->CreateAllocatorDump(space_name_prefix)->guid()); | 166 process_memory_dump->CreateAllocatorDump(space_name_prefix)->guid()); |
| 165 } | 167 } |
| 166 } | 168 } |
| 167 | 169 |
| 168 } // namespace gin | 170 } // namespace gin |
| OLD | NEW |