与工作线程互动


【Interaction with workers】

Worker 线程可以以与主线程相同的方式创建报告。

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

【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.】

生成报告的线程将等待工作线程完成报告。然而,这通常的延迟很低,因为在生成报告时,运行的 JavaScript 和事件循环都会被中断。

【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.】