mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: format docs (#8629)
This commit is contained in:
@@ -1,46 +1,49 @@
|
||||
---
|
||||
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
|
||||
|
||||
NOTE: All timestamps are in monotonic time: monotonically increasing time in seconds since an arbitrary point in the past.
|
||||
|
||||
---
|
||||
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
|
||||
|
||||
NOTE: All timestamps are in monotonic time: monotonically increasing time in seconds since an arbitrary point in the past.
|
||||
|
||||
Reference in New Issue
Block a user