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 <jasnell@gmail.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
  • Loading branch information
skyclouds2001 authored and aduh95 committed Nov 26, 2024
1 parent 7705724 commit a3f7db6
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 a3f7db6

Please sign in to comment.