与工作线程的交互


Worker 线程可以像主线程一样创建报告。

报告将包括作为 workers 部分的一部分的当前线程的子线程的任何工作线程的信息,每个工作线程以标准报告格式生成报告。

生成报告的线程将等待工作线程的报告完成。 但是,由于运行 JavaScript 和事件循环都被中断以生成报告,因此延迟通常很低。

Worker threads can create reports in the same way that the main thread does.

Reports will include information on any Workers that are children of the current thread as part of the workers section, with each Worker generating a report in the standard report format.

The thread which is generating the report will wait for the reports from Worker threads to finish. However, the latency for this will usually be low, as both running JavaScript and the event loop are interrupted to generate the report.