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 #ifndef V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_ | 5 #ifndef V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_ |
6 #define V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_ | 6 #define V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_ |
7 | 7 |
8 #include "src/inspector/Allocator.h" | 8 #include "src/base/macros.h" |
9 #include "src/inspector/protocol/Forward.h" | 9 #include "src/inspector/protocol/Forward.h" |
10 #include "src/inspector/protocol/HeapProfiler.h" | 10 #include "src/inspector/protocol/HeapProfiler.h" |
11 | 11 |
12 #include "include/v8.h" | 12 #include "include/v8.h" |
13 | 13 |
14 namespace v8_inspector { | 14 namespace v8_inspector { |
15 | 15 |
16 class V8InspectorSessionImpl; | 16 class V8InspectorSessionImpl; |
17 | 17 |
18 using protocol::ErrorString; | 18 using protocol::ErrorString; |
19 using protocol::Maybe; | 19 using protocol::Maybe; |
20 | 20 |
21 class V8HeapProfilerAgentImpl : public protocol::HeapProfiler::Backend { | 21 class V8HeapProfilerAgentImpl : public protocol::HeapProfiler::Backend { |
22 V8_INSPECTOR_DISALLOW_COPY(V8HeapProfilerAgentImpl); | 22 DISALLOW_COPY_AND_ASSIGN(V8HeapProfilerAgentImpl); |
23 | 23 |
24 public: | 24 public: |
25 V8HeapProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, | 25 V8HeapProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, |
26 protocol::DictionaryValue* state); | 26 protocol::DictionaryValue* state); |
27 ~V8HeapProfilerAgentImpl() override; | 27 ~V8HeapProfilerAgentImpl() override; |
28 void restore(); | 28 void restore(); |
29 | 29 |
30 void collectGarbage(ErrorString*) override; | 30 void collectGarbage(ErrorString*) override; |
31 | 31 |
32 void enable(ErrorString*) override; | 32 void enable(ErrorString*) override; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 V8InspectorSessionImpl* m_session; | 64 V8InspectorSessionImpl* m_session; |
65 v8::Isolate* m_isolate; | 65 v8::Isolate* m_isolate; |
66 protocol::HeapProfiler::Frontend m_frontend; | 66 protocol::HeapProfiler::Frontend m_frontend; |
67 protocol::DictionaryValue* m_state; | 67 protocol::DictionaryValue* m_state; |
68 bool m_hasTimer; | 68 bool m_hasTimer; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace v8_inspector | 71 } // namespace v8_inspector |
72 | 72 |
73 #endif // V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_ | 73 #endif // V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_ |
OLD | NEW |