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 and aduh95 committed Dec 13, 2024
1 parent 0295c2b commit 6761356
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 @@ -1337,6 +1337,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 6761356

Please sign in to comment.