Skip to content

Commit e8db106

Browse files
skyclouds2001marco-ippolito
authored andcommitted
doc: add doc for PerformanceObserver.takeRecords()
PR-URL: #55786 Fixes: #55779 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jason Zhang <[email protected]>
1 parent dc6ac81 commit e8db106

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/perf_hooks.md

+8
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,14 @@ for (let n = 0; n < 3; n++)
13301330
performance.mark(`test${n}`);
13311331
```
13321332

1333+
### `performanceObserver.takeRecords()`
1334+
1335+
<!-- YAML
1336+
added: v16.0.0
1337+
-->
1338+
1339+
* Returns: {PerformanceEntry\[]} Current list of entries stored in the performance observer, emptying it out.
1340+
13331341
## Class: `PerformanceObserverEntryList`
13341342

13351343
<!-- YAML

0 commit comments

Comments
 (0)