3aee641c3d
🤖 I have created a release *beep* *boop* --- ## [18.1.0](https://github.com/puppeteer/puppeteer/compare/v18.0.5...v18.1.0) (2022-10-05) ### Features * **chromium:** roll to Chromium 107.0.5296.0 (r1045629) ([#9039](https://github.com/puppeteer/puppeteer/issues/9039)) ([022fbde
](022fbde85e
)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
50 lines
1.1 KiB
Markdown
50 lines
1.1 KiB
Markdown
---
|
|
sidebar_label: Page.metrics
|
|
---
|
|
|
|
# Page.metrics() method
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
class Page {
|
|
metrics(): Promise<Metrics>;
|
|
}
|
|
```
|
|
|
|
**Returns:**
|
|
|
|
Promise<[Metrics](./puppeteer.metrics.md)>
|
|
|
|
Object containing metrics as key/value pairs.
|
|
|
|
- `Timestamp` : The timestamp when the metrics sample was taken.
|
|
|
|
- `Documents` : Number of documents in the page.
|
|
|
|
- `Frames` : Number of frames in the page.
|
|
|
|
- `JSEventListeners` : Number of events in the page.
|
|
|
|
- `Nodes` : Number of DOM nodes in the page.
|
|
|
|
- `LayoutCount` : Total number of full or partial page layout.
|
|
|
|
- `RecalcStyleCount` : Total number of page style recalculations.
|
|
|
|
- `LayoutDuration` : Combined durations of all page layouts.
|
|
|
|
- `RecalcStyleDuration` : Combined duration of all page style recalculations.
|
|
|
|
- `ScriptDuration` : Combined duration of JavaScript execution.
|
|
|
|
- `TaskDuration` : Combined duration of all tasks performed by the browser.
|
|
|
|
- `JSHeapUsedSize` : Used JavaScript heap size.
|
|
|
|
- `JSHeapTotalSize` : Total JavaScript heap size.
|
|
|
|
## Remarks
|
|
|
|
All timestamps are in monotonic time: monotonically increasing time in seconds since an arbitrary point in the past.
|