From 0d098bfaf0403edad7ef2a7458198adf8eee8739 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 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/api/v8.md b/doc/api/v8.md index 61c71f9626d2e3..d6286ab37d3553 100644 --- a/doc/api/v8.md +++ b/doc/api/v8.md @@ -223,6 +223,17 @@ 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])`