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

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

Issue 2819423005: [inspector] removed kDebugPromiseCollected event (Closed)
Patch Set: added a test Created 3 years, 8 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
« no previous file with comments | « src/inspector/v8-debugger.h ('k') | test/inspector/debugger/collect-obsolete-async-tasks.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/v8-debugger.cc
diff --git a/src/inspector/v8-debugger.cc b/src/inspector/v8-debugger.cc
index f90403eeb1d3afeb3abbce1f0abaccabb610b648..bd8654d76951e72fc5cd3535856a7869b34e1fc8 100644
--- a/src/inspector/v8-debugger.cc
+++ b/src/inspector/v8-debugger.cc
@@ -666,10 +666,6 @@ void V8Debugger::PromiseEventOccurred(v8::debug::PromiseDebugActionType type,
asyncTaskFinishedForStack(task);
asyncTaskFinishedForStepping(task);
break;
- case v8::debug::kDebugPromiseCollected:
- asyncTaskCanceledForStack(task);
- asyncTaskCanceledForStepping(task);
- break;
}
}
@@ -1052,4 +1048,14 @@ void V8Debugger::setMaxAsyncTaskStacksForTest(int limit) {
m_maxAsyncCallStacks = limit;
}
+void V8Debugger::dumpAsyncTaskStacksStateForTest() {
+ fprintf(stdout, "Async stacks count: %d\n", m_asyncStacksCount);
+ fprintf(stdout, "Scheduled async tasks: %zu\n", m_asyncTaskStacks.size());
+ fprintf(stdout, "Created async tasks: %zu\n",
+ m_asyncTaskCreationStacks.size());
+ fprintf(stdout, "Async tasks with parent: %zu\n", m_parentTask.size());
+ fprintf(stdout, "Recurring async tasks: %zu\n", m_recurringTasks.size());
+ fprintf(stdout, "\n");
+}
+
} // namespace v8_inspector
« no previous file with comments | « src/inspector/v8-debugger.h ('k') | test/inspector/debugger/collect-obsolete-async-tasks.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698