-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
inspectorIssues and PRs related to the V8 inspector protocolIssues and PRs related to the V8 inspector protocolv8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
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.
rwjblue
Metadata
Metadata
Assignees
Labels
inspectorIssues and PRs related to the V8 inspector protocolIssues and PRs related to the V8 inspector protocolv8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.