Index: src/inspector/v8-debugger.h |
diff --git a/src/inspector/v8-debugger.h b/src/inspector/v8-debugger.h |
index eb5d529a49c310e0d5a045b87312cdc9e46cd46e..bc2f6c398e220e8c9368122c679ace7c5f79ab14 100644 |
--- a/src/inspector/v8-debugger.h |
+++ b/src/inspector/v8-debugger.h |
@@ -77,6 +77,7 @@ class V8Debugger : public v8::debug::DebugDelegate { |
v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>, |
v8::Local<v8::Value>); |
+ void asyncTaskCreated(void* task); |
void asyncTaskScheduled(const StringView& taskName, void* task, |
bool recurring); |
void asyncTaskScheduled(const String16& taskName, void* task, bool recurring); |
@@ -148,6 +149,8 @@ class V8Debugger : public v8::debug::DebugDelegate { |
const v8::debug::Location& start, |
const v8::debug::Location& end) override; |
+ void registerAsyncTaskIfNeeded(void* task); |
+ |
v8::Isolate* m_isolate; |
V8InspectorImpl* m_inspector; |
int m_enableCount; |
@@ -163,6 +166,7 @@ class V8Debugger : public v8::debug::DebugDelegate { |
using AsyncTaskToStackTrace = |
protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>; |
AsyncTaskToStackTrace m_asyncTaskStacks; |
+ AsyncTaskToStackTrace m_asyncTaskCreatedStacks; |
dgozman
2017/01/24 01:02:41
m_asyncTaskCreationStacks
kozy
2017/01/24 21:43:39
Done.
|
int m_maxAsyncCallStacks; |
std::map<int, void*> m_idToTask; |
std::unordered_map<void*, int> m_taskToId; |