Skip to content

Commit

Permalink
doc: add doc for PerformanceObserver.takeRecords()
Browse files Browse the repository at this point in the history
Fixes: #55779
  • Loading branch information
skyclouds2001 committed Nov 14, 2024
1 parent be5a500 commit 0624b37
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 0624b37

Please sign in to comment.