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_V8DEBUGGER_H_ | 5 #ifndef V8_INSPECTOR_V8DEBUGGER_H_ |
6 #define V8_INSPECTOR_V8DEBUGGER_H_ | 6 #define V8_INSPECTOR_V8DEBUGGER_H_ |
7 | 7 |
8 #include "src/base/macros.h" | 8 #include "src/base/macros.h" |
9 #include "src/inspector/java-script-call-frame.h" | 9 #include "src/inspector/java-script-call-frame.h" |
10 #include "src/inspector/protocol/Forward.h" | 10 #include "src/inspector/protocol/Forward.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
83 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } | 83 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } |
84 V8StackTraceImpl* currentAsyncCallChain(); | 84 V8StackTraceImpl* currentAsyncCallChain(); |
85 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); | 85 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); |
86 std::unique_ptr<V8StackTraceImpl> createStackTrace(v8::Local<v8::StackTrace>); | 86 std::unique_ptr<V8StackTraceImpl> createStackTrace(v8::Local<v8::StackTrace>); |
87 std::unique_ptr<V8StackTraceImpl> captureStackTrace(bool fullStack); | 87 std::unique_ptr<V8StackTraceImpl> captureStackTrace(bool fullStack); |
88 | 88 |
89 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>, | 89 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>, |
90 v8::Local<v8::Value>); | 90 v8::Local<v8::Value>); |
91 | 91 |
92 void asyncTaskScheduled(const StringView& taskName, void* task, | 92 void asyncTaskScheduled(const StringView& taskName, void* task, |
93 bool recurring); | 93 bool recurring, int skipInitialFrames = 0); |
kozy
2016/09/23 01:27:36
Please not expose this argument in public API. You
Dan Ehrenberg
2016/09/23 04:11:31
As we discussed off-line, there's nothing special
| |
94 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring); | 94 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring, |
95 int skipInitialFrames = 0); | |
95 void asyncTaskCanceled(void* task); | 96 void asyncTaskCanceled(void* task); |
96 void asyncTaskStarted(void* task); | 97 void asyncTaskStarted(void* task); |
97 void asyncTaskFinished(void* task); | 98 void asyncTaskFinished(void* task); |
98 void allAsyncTasksCanceled(); | 99 void allAsyncTasksCanceled(); |
99 | 100 |
100 void muteScriptParsedEvents(); | 101 void muteScriptParsedEvents(); |
101 void unmuteScriptParsedEvents(); | 102 void unmuteScriptParsedEvents(); |
102 | 103 |
103 V8InspectorImpl* inspector() { return m_inspector; } | 104 V8InspectorImpl* inspector() { return m_inspector; } |
104 | 105 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 protocol::HashSet<void*> m_recurringTasks; | 152 protocol::HashSet<void*> m_recurringTasks; |
152 int m_maxAsyncCallStackDepth; | 153 int m_maxAsyncCallStackDepth; |
153 std::vector<void*> m_currentTasks; | 154 std::vector<void*> m_currentTasks; |
154 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 155 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
155 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 156 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
156 }; | 157 }; |
157 | 158 |
158 } // namespace v8_inspector | 159 } // namespace v8_inspector |
159 | 160 |
160 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 161 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
OLD | NEW |