Index: src/inspector/v8-debugger.h |
diff --git a/src/inspector/v8-debugger.h b/src/inspector/v8-debugger.h |
index 1f327c67d1f566ebbfc206ba576ab25d07250673..6df7e83e70e39c7c6b73fac51c60f6bd1fac4fc9 100644 |
--- a/src/inspector/v8-debugger.h |
+++ b/src/inspector/v8-debugger.h |
@@ -78,6 +78,7 @@ class V8Debugger : public v8::debug::DebugEventListener { |
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); |
@@ -146,6 +147,8 @@ class V8Debugger : public v8::debug::DebugEventListener { |
v8::Local<v8::Value> exception, |
bool is_promise_rejection, bool is_uncaught) override; |
+ void registerAsyncTaskIfNeeded(void* task); |
+ |
v8::Isolate* m_isolate; |
V8InspectorImpl* m_inspector; |
int m_enableCount; |
@@ -161,6 +164,7 @@ class V8Debugger : public v8::debug::DebugEventListener { |
using AsyncTaskToStackTrace = |
protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>; |
AsyncTaskToStackTrace m_asyncTaskStacks; |
+ AsyncTaskToStackTrace m_asyncTaskCreatedStacks; |
int m_maxAsyncCallStacks; |
std::map<int, void*> m_idToTask; |
std::unordered_map<void*, int> m_taskToId; |