v8.stopCoverage()


新增于: v15.1.0, v14.18.0, v12.22.0

v8.stopCoverage() 方法允许用户停止由 NODE_V8_COVERAGE 启动的覆盖率收集,这样 V8 就可以释放执行计数记录并优化代码。如果用户希望按需收集覆盖率,可以与 v8.takeCoverage() 一起使用。

🌐 The v8.stopCoverage() method allows the user to stop the coverage collection started by NODE_V8_COVERAGE, so that V8 can release the execution count records and optimize code. This can be used in conjunction with v8.takeCoverage() if the user wants to collect the coverage on demand.

AltStyle によって変換されたページ (->オリジナル) /