From ab83e2c7ae019693e1d1772606cff75d38d949b7 Mon Sep 17 00:00:00 2001 From: skyclouds2001 Date: Thu, 14 Nov 2024 11:21:40 +0800 Subject: [PATCH] doc: add doc for PerformanceObserver.takeRecords() --- 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 7c3144939244b6..591656c2664d48 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -1339,6 +1339,14 @@ for (let n = 0; n < 3; n++) performance.mark(`test${n}`); ``` +### `performanceObserver.takeRecords()` + + + +* Returns: {PerformanceEntry\[]} Current list of entries stored in the performance observer, emptying it out. + ## Class: `PerformanceObserverEntryList`