Skip to content

Commit 224cc64

Browse files
antonytevanlucas
authored andcommitted
doc: add doc for performance.clearGC()
PR-URL: #18331 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent e5f6159 commit 224cc64

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/perf_hooks.md

+8
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ added: v8.5.0
4747
If `name` is not provided, removes all `PerformanceFunction` objects from the
4848
Performance Timeline. If `name` is provided, removes entries with `name`.
4949

50+
### performance.clearGC()
51+
<!-- YAML
52+
added: v8.5.0
53+
-->
54+
55+
Remove all performance entry objects with `entryType` equal to `gc` from the
56+
Performance Timeline.
57+
5058
### performance.clearMarks([name])
5159
<!-- YAML
5260
added: v8.5.0

0 commit comments

Comments
 (0)