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

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

Issue 2648873002: [inspector] added creation frame for async call chains for promises (Closed)
Patch Set: fixed usage of external reference 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 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;

Powered by Google App Engine
This is Rietveld 408576698