Skip to content

Commit

Permalink
doc: add missing documentation for `PerformanceObserver.prototype.tak…
Browse files Browse the repository at this point in the history
…eRecords()`
  • Loading branch information
skyclouds2001 authored Nov 8, 2024
1 parent 94be10a commit d379b7a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/api/perf_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,14 @@ for (let n = 0; n < 3; n++)
performance.mark(`test${n}`);
```

### `performanceObserver.takeRecords()`

<!-- YAML
added: v16.0.0
-->

Gets the current list of {PerformanceEntry} objects stored in the performance observer, emptying it out.

## Class: `PerformanceObserverEntryList`

<!-- YAML
Expand Down

0 comments on commit d379b7a

Please sign in to comment.