diff --git a/doc/api/v8.md b/doc/api/v8.md index db92ad062b7e63..ce029330af0e45 100644 --- a/doc/api/v8.md +++ b/doc/api/v8.md @@ -1310,6 +1310,7 @@ added: --> Create a new instance of the `v8.GCProfiler` class. +This API supports `using` syntax. ### `profiler.start()` @@ -1329,7 +1330,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 @@ -1405,6 +1406,14 @@ setTimeout(() => { }, 1000); ``` +### `profiler[Symbol.dispose]()` + + + +Stop collecting GC data, and discard the profile. + ## Class: `SyncCPUProfileHandle`