diff --git a/doc/api/v8.md b/doc/api/v8.md index c18b3b10412..d974910305f 100644 --- a/doc/api/v8.md +++ b/doc/api/v8.md @@ -1471,6 +1471,7 @@ added: --> Create a new instance of the `v8.GCProfiler` class. +This API supports `using` syntax. ### `profiler.start()` @@ -1490,7 +1491,7 @@ added: - v18.15.0 --> -Stop collecting GC data and return an object.The content of object +Stop collecting GC data and return an object. The content of object is as follows. ```json @@ -1575,6 +1576,14 @@ setTimeout(() => { }, 1000); ``` +### `profiler[Symbol.dispose]()` + + + +Stop collecting GC data, and discard the profile. + ## Class: `SyncCPUProfileHandle`