◐ Shell
clean mode source ↗

doc: add doc for PerformanceObserver.takeRecords() · nodejs/node@e529cf6

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit e529cf6

skyclouds2001ruyadorno

authored and

committed

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 file changed

Lines changed: 8 additions & 0 deletions

File tree

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