From 2e732893791228975added45dd7a4c2ecc144175 Mon Sep 17 00:00:00 2001 From: Antony Tran Date: Wed, 24 Jan 2018 08:29:58 +0900 Subject: [PATCH] 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(+) diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 3f2cc506f3148a..2f2910af93db34 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])