Skip to content

Commit

Permalink
doc: add doc for PerformanceObserver.takeRecords()
Browse files Browse the repository at this point in the history
PR-URL: #55786
Fixes: #55779
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Jason Zhang <[email protected]>
  • Loading branch information
skyclouds2001 authored Nov 25, 2024
1 parent abd95a8 commit b17a1fb
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
-->

* Returns: {PerformanceEntry\[]} Current list of entries stored in the performance observer, emptying it out.

## Class: `PerformanceObserverEntryList`

<!-- YAML
Expand Down

0 comments on commit b17a1fb

Please sign in to comment.