mirror of https://github.com/nodejs/node.git
doc: add doc for PerformanceObserver.takeRecords()
PR-URL: https://github.com/nodejs/node/pull/55786 Fixes: https://github.com/nodejs/node/issues/55779 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com>pull/55988/head
parent
abd95a85c5
commit
b17a1fb1ce
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue