doc: add doc for performance.clearGC()

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Antony Tran 2018-01-24 08:29:58 +09:00 committed by Vse Mozhet Byt
parent 62880503dd
commit d8263a0677

View File

@ -47,6 +47,14 @@ added: v8.5.0
If `name` is not provided, removes all `PerformanceFunction` objects from the
Performance Timeline. If `name` is provided, removes entries with `name`.
### performance.clearGC()
<!-- YAML
added: v8.5.0
-->
Remove all performance entry objects with `entryType` equal to `gc` from the
Performance Timeline.
### performance.clearMarks([name])
<!-- YAML
added: v8.5.0