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 |