--report-on-process-timeout


稳定性: 1.1 - 处于活跃开发中

当 --process-timeout 过期时,除了打印到 stderr 的摘要外,还可以生成报告。对于检查 JavaScript 和本地堆栈、事件循环状态以及资源消耗,以推断进程未退出的原因很有用。需要 --process-timeout。

🌐 Enables the report to be generated when --process-timeout expires, in addition to the summary printed to stderr. Useful to inspect the JavaScript and native stacks, the event loop state, and resource consumption to reason about why the process did not exit. Requires --process-timeout.

例如,如果工作线程因为被阻塞在像 child_process.execSync() 这样的同步操作中而在两秒内没有提供它们的报告部分,它们就会被排除在外。

🌐 Worker threads that do not provide their part of the report within two seconds, for example because they are blocked in a synchronous operation such as child_process.execSync(), are left out of it.