Skip to content

Commit

Permalink
doc: add doc for performance.clearGC()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
antonyt authored and MylesBorins committed Feb 27, 2018
1 parent 15c847e commit 477e7d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/api/perf_hooks.md
Expand Up @@ -39,6 +39,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
Expand Down

0 comments on commit 477e7d1

Please sign in to comment.