Skip to content

Commit ab83e2c

Browse files
committed
doc: add doc for PerformanceObserver.takeRecords()
1 parent be5a500 commit ab83e2c

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)