OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project 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 "src/inspector/V8HeapProfilerAgentImpl.h" | 5 #include "src/inspector/v8-heap-profiler-agent-impl.h" |
6 | 6 |
7 #include "src/inspector/InjectedScript.h" | 7 #include "src/inspector/injected-script.h" |
8 #include "src/inspector/StringUtil.h" | |
9 #include "src/inspector/V8Debugger.h" | |
10 #include "src/inspector/V8InspectorImpl.h" | |
11 #include "src/inspector/V8InspectorSessionImpl.h" | |
12 #include "src/inspector/protocol/Protocol.h" | 8 #include "src/inspector/protocol/Protocol.h" |
| 9 #include "src/inspector/string-util.h" |
| 10 #include "src/inspector/v8-debugger.h" |
| 11 #include "src/inspector/v8-inspector-impl.h" |
| 12 #include "src/inspector/v8-inspector-session-impl.h" |
13 | 13 |
14 #include "include/v8-inspector.h" | 14 #include "include/v8-inspector.h" |
15 #include "include/v8-profiler.h" | 15 #include "include/v8-profiler.h" |
16 #include "include/v8-version.h" | 16 #include "include/v8-version.h" |
17 | 17 |
18 namespace v8_inspector { | 18 namespace v8_inspector { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 namespace HeapProfilerAgentState { | 22 namespace HeapProfilerAgentState { |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 *errorString = "Cannot access v8 sampled heap profile."; | 398 *errorString = "Cannot access v8 sampled heap profile."; |
399 return; | 399 return; |
400 } | 400 } |
401 v8::AllocationProfile::Node* root = v8Profile->GetRootNode(); | 401 v8::AllocationProfile::Node* root = v8Profile->GetRootNode(); |
402 *profile = protocol::HeapProfiler::SamplingHeapProfile::create() | 402 *profile = protocol::HeapProfiler::SamplingHeapProfile::create() |
403 .setHead(buildSampingHeapProfileNode(root)) | 403 .setHead(buildSampingHeapProfileNode(root)) |
404 .build(); | 404 .build(); |
405 } | 405 } |
406 | 406 |
407 } // namespace v8_inspector | 407 } // namespace v8_inspector |
OLD | NEW |