Skip to content

Commit 477e7d1

Browse files
antonytMylesBorins
authored andcommitted
doc: add doc for performance.clearGC()
PR-URL: #18331 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 15c847e commit 477e7d1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/perf_hooks.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ added: v8.5.0
3939
If `name` is not provided, removes all `PerformanceFunction` objects from the
4040
Performance Timeline. If `name` is provided, removes entries with `name`.
4141

42+
### performance.clearGC()
43+
<!-- YAML
44+
added: v8.5.0
45+
-->
46+
47+
Remove all performance entry objects with `entryType` equal to `gc` from the
48+
Performance Timeline.
49+
4250
### performance.clearMarks([name])
4351
<!-- YAML
4452
added: v8.5.0

0 commit comments

Comments
 (0)