From d8263a067741c56f7bf8d4edc7031752c9b72793 Mon Sep 17 00:00:00 2001 From: Antony Tran Date: Wed, 24 Jan 2018 08:29:58 +0900 Subject: doc: add doc for performance.clearGC() PR-URL: https://github.com/nodejs/node/pull/18331 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Khaidi Chu Reviewed-By: Gireesh Punathil --- doc/api/perf_hooks.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/api/perf_hooks.md') diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 3f2cc506f3..2f2910af93 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -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() + + +Remove all performance entry objects with `entryType` equal to `gc` from the +Performance Timeline. + ### performance.clearMarks([name])