File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,17 @@ v8.setFlagsFromString('--trace_gc');
223223setTimeout (() => { v8 .setFlagsFromString (' --notrace_gc' ); }, 60e3 );
224224```
225225
226+ ## ` v8.stopCoverage() `
227+
228+ <!-- YAML
229+ added: REPLACEME
230+ -->
231+
232+ The ` v8.stopCoverage() ` method allows the user to stop the coverage collection
233+ started by [ ` NODE_V8_COVERAGE ` ] [ ] , so that V8 can release the execution count
234+ records and optimize code. This can be used in conjunction with
235+ [ ` v8.takeCoverage() ` ] [ ] if the user wants to collect the coverage on demand.
236+
226237## ` v8.takeCoverage() `
227238
228239<!-- YAML
@@ -238,17 +249,6 @@ by [`NODE_V8_COVERAGE`][].
238249When the process is about to exit, one last coverage will still be written to
239250disk unless [ ` v8.stopCoverage() ` ] [ ] is invoked before the process exits.
240251
241- ## ` v8.stopCoverage() `
242-
243- <!-- YAML
244- added: REPLACEME
245- -->
246-
247- The ` v8.stopCoverage() ` method allows the user to stop the coverage collection
248- started by [ ` NODE_V8_COVERAGE ` ] [ ] , so that V8 can release the execution count
249- records and optimize code. This can be used in conjunction with
250- [ ` v8.takeCoverage() ` ] [ ] if the user wants to collect the coverage on demand.
251-
252252## ` v8.writeHeapSnapshot([filename]) `
253253<!-- YAML
254254added: v11.13.0
You can’t perform that action at this time.
0 commit comments