Content-Length: 270373 | pFad | https://github.com/nodejs/node/commit/e529cf6b26

02 doc: add doc for PerformanceObserver.takeRecords() · nodejs/node@e529cf6 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/nodejs/node/commit/e529cf6b26

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy