Skip to content

Conversation

@geekdroid07
Copy link

Summary

  • Expose ChildProcess.prototype.getMemoryUsage() via IPC, including request tracking, error propagation, and serialization.
  • Add regression tests plus a fixture exercising the happy path and failure cases (child stopped, IPC closed).
  • Document the new API and error codes (ERR_CHILD_PROCESS_MEMORY_USAGE_FAILED, ERR_CHILD_PROCESS_NOT_RUNNING) in
    • doc/api/child_process.md
    • doc/api/errors.md

Testing

python ./tools/test.py parallel/test-child-process-get-memory-usage
make lint-js

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Nov 19, 2025
#### `subprocess.getMemoryUsage()`
<!-- YAML
added: v25.2.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
added: v25.2.1
added: REPLACEME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants