Skip to content

Commit e529cf6

Browse files
skyclouds2001ruyadorno
authored andcommitted
doc: add doc for PerformanceObserver.takeRecords()
PR-URL: #55786 Fixes: #55779 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com>
1 parent a6ef0f6 commit e529cf6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/perf_hooks.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,14 @@ for (let n = 0; n < 3; n++)
13371337
performance.mark(`test${n}`);
13381338
```
13391339

1340+
### `performanceObserver.takeRecords()`
1341+
1342+
<!-- YAML
1343+
added: v16.0.0
1344+
-->
1345+
1346+
* Returns: {PerformanceEntry\[]} Current list of entries stored in the performance observer, emptying it out.
1347+
13401348
## Class: `PerformanceObserverEntryList`
13411349

13421350
<!-- YAML

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy