takeHeapSnapshot

external fun takeHeapSnapshot(filePath: String): Promise<Void>(source)

Indicates whether the snapshot has been created successfully.

Takes a V8 heap snapshot and saves it to filePath.