Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add doc for PerformanceObserver.takeRecords()
Browse files Browse the repository at this point in the history
skyclouds2001 committed Nov 8, 2024
1 parent 58a8eb4 commit 04c1d1f
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
@@ -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

0 comments on commit 04c1d1f

Please sign in to comment.