Skip to content

Commit a3f7db6

Browse files
skyclouds2001aduh95
authored andcommitted
doc: add doc for PerformanceObserver.takeRecords()
PR-URL: #55786 Fixes: #55779 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com>
1 parent 7705724 commit a3f7db6

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
@@ -1339,6 +1339,14 @@ for (let n = 0; n < 3; n++)
13391339
performance.mark(`test${n}`);
13401340
```
13411341

1342+
### `performanceObserver.takeRecords()`
1343+
1344+
<!-- YAML
1345+
added: v16.0.0
1346+
-->
1347+
1348+
* Returns: {PerformanceEntry\[]} Current list of entries stored in the performance observer, emptying it out.
1349+
13421350
## Class: `PerformanceObserverEntryList`
13431351

13441352
<!-- YAML

0 commit comments

Comments
 (0)