Skip to content

Commit d379b7a

Browse files
doc: add missing documentation for PerformanceObserver.prototype.takeRecords()
1 parent 94be10a commit d379b7a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/perf_hooks.md

Lines changed: 8 additions & 0 deletions
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+
Gets the current list of {PerformanceEntry} objects stored in the performance observer, emptying it out.
1349+
13421350
## Class: `PerformanceObserverEntryList`
13431351

13441352
<!-- YAML

0 commit comments

Comments
 (0)