Skip to content

Move 'internalBinding('heap_utils').createHeapDump()' to user land #23328

@paulrutter

Description

@paulrutter

This feature request comes from discussion in nodejs/diagnostics#239; ideally there would be a public API in nodejs that offers creating heapdumps.
There are several modules around (node-heapdump, v8-profiler, node-oom-heapdump etc) that offer this functionality, but it would make nodejs more mature if this is available in the public API.

@joyeecheung mentioned a way to generate a heapdump without help of an external module, but this seems a bit convoluted.

Phase 2 would be to have a way to hook into V8 isolate->SetOOMErrorHandler(OnOOMError); from JS code, so a user can define custom actions in case of an out of memory. I will create a separate feature request for that one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    inspectorIssues and PRs related to the V8 inspector protocolv8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions