v8.stopCoverage()
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.