Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Unified Diff: src/inspector/v8-debugger.h

Issue 2648873002: [inspector] added creation frame for async call chains for promises (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698