Back to Puppeteer

Page.captureHeapSnapshot() method

docs/api/puppeteer.page.captureheapsnapshot.md

19.2.2511 B
Original Source

Page.captureHeapSnapshot() method

Captures a snapshot of the JavaScript heap and writes it to a file.

Signature

typescript
class Page {
  abstract captureHeapSnapshot(options: HeapSnapshotOptions): Promise<void>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

options

</td><td>

HeapSnapshotOptions

</td><td> </td></tr> </tbody></table>

Returns:

Promise<void>