doc: add doc for PerformanceObserver.takeRecords()

PR-URL: https://github.com/nodejs/node/pull/55786
Fixes: https://github.com/nodejs/node/issues/55779
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
This commit is contained in:
skyclouds2001 authored and Marco Ippolito committed 2025-01-24 22:18:45 +01:00
1 parent 682ae41f86
commit 65c1784337
1 file changed
+8
+8
View File
@@ -1330,6 +1330,14 @@ for (let n = 0; n < 3; n++)
performance.mark(`test${n}`);
```
### `performanceObserver.takeRecords()`
<!-- YAML
added: v16.0.0
-->
* Returns: {PerformanceEntry\[]} Current list of entries stored in the performance observer, emptying it out.
## Class: `PerformanceObserverEntryList`
<!-- YAML