Skip to content

ElectronWebContents.takeHeapSnapshot method

ElectronWebContents › takeHeapSnapshot

Unofficial

Takes a V8 heap snapshot and saves it to filePath.

Signature:

takeHeapSnapshot(filePath: string): Promise<void>

Parameters:

Parameter Type Description
filePath string The path to save the heap snapshot to.

Returns: Promise<void>A promise resolving when the snapshot has been created.