From ddc24b21058f313729378bd133fec88c27dc737c Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 30 Jun 2021 21:22:38 -0700 Subject: [PATCH] doc: move v8.stopCoverage() to expected location in doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39212 Reviewed-By: Michaƫl Zasso Reviewed-By: Harshitha K P Reviewed-By: Luigi Pinca --- doc/api/v8.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/doc/api/v8.md b/doc/api/v8.md index 41e4c7456284ca..cdba51d8ddb88d 100644 --- a/doc/api/v8.md +++ b/doc/api/v8.md @@ -223,6 +223,19 @@ v8.setFlagsFromString('--trace_gc'); setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3); ``` +## `v8.stopCoverage()` + + + +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. + ## `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. - ## `v8.writeHeapSnapshot([filename])`