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> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "base/trace_event/memory_dump_manager.h" | 11 #include "base/trace_event/memory_dump_manager.h" |
12 #include "base/trace_event/process_memory_dump.h" | 12 #include "base/trace_event/process_memory_dump.h" |
13 #include "gin/public/isolate_holder.h" | 13 #include "gin/public/isolate_holder.h" |
14 #include "v8/include/v8.h" | 14 #include "v8/include/v8.h" |
15 | 15 |
16 namespace gin { | 16 namespace gin { |
17 | 17 |
18 V8IsolateMemoryDumpProvider::V8IsolateMemoryDumpProvider( | 18 V8IsolateMemoryDumpProvider::V8IsolateMemoryDumpProvider( |
19 IsolateHolder* isolate_holder) | 19 IsolateHolder* isolate_holder) |
20 : isolate_holder_(isolate_holder) { | 20 : isolate_holder_(isolate_holder) { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 175 } |
176 | 176 |
177 if (did_dump_object_stats) { | 177 if (did_dump_object_stats) { |
178 process_memory_dump->AddOwnershipEdge( | 178 process_memory_dump->AddOwnershipEdge( |
179 process_memory_dump->CreateAllocatorDump(object_name_prefix)->guid(), | 179 process_memory_dump->CreateAllocatorDump(object_name_prefix)->guid(), |
180 process_memory_dump->CreateAllocatorDump(space_name_prefix)->guid()); | 180 process_memory_dump->CreateAllocatorDump(space_name_prefix)->guid()); |
181 } | 181 } |
182 } | 182 } |
183 | 183 |
184 } // namespace gin | 184 } // namespace gin |
OLD | NEW |