| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bd6af78 commit 0d098bf
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -223,6 +223,17 @@ v8.setFlagsFromString('--trace_gc'); | |||
| 223 | 223 | setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3); | |
| 224 | 224 | ``` | |
| 225 | 225 | ||
| 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 | + | ||
| 226 | 237 | ## `v8.takeCoverage()` | |
| 227 | 238 | ||
| 228 | 239 | <!-- YAML | |
@@ -238,17 +249,6 @@ by [`NODE_V8_COVERAGE`][]. | |||
| 238 | 249 | When the process is about to exit, one last coverage will still be written to | |
| 239 | 250 | disk unless [`v8.stopCoverage()`][] is invoked before the process exits. | |
| 240 | 251 | ||
| 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 | - | ||
| 252 | 252 | ## `v8.writeHeapSnapshot([filename])` | |
| 253 | 253 | <!-- YAML | |
| 254 | 254 | added: v11.13.0 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments