Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supported platform of some fields in process.resourceUsage #42436

Closed
srknzl opened this issue Mar 22, 2022 · 3 comments
Closed

Supported platform of some fields in process.resourceUsage #42436

srknzl opened this issue Mar 22, 2022 · 3 comments
Labels
doc Issues and PRs related to the documentations. question Issues that look for answers.

Comments

@srknzl
Copy link
Contributor

srknzl commented Mar 22, 2022

Affected URL(s)

https://nodejs.org/api/process.html#processresourceusage

Description of the problem

According to the documentation:

sharedMemorySize [<integer>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) maps to ru_ixrss but is not supported by any platform.
unsharedDataSize [<integer>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) maps to ru_idrss but is not supported by any platform.
unsharedStackSize [<integer>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) maps to ru_isrss but is not supported by any platform.

I did not understand why they are not supported by any platform. Did you mean is not supported by all platforms ? If it is not supported by any platform, why do we have it?

@srknzl srknzl added the doc Issues and PRs related to the documentations. label Mar 22, 2022
@mscdex
Copy link
Contributor

mscdex commented Mar 22, 2022

This question was asked in the original PR here. In short: we have them in case they are used by a platform in the future.

@mscdex mscdex closed this as completed Mar 22, 2022
@mscdex mscdex added the question Issues that look for answers. label Mar 22, 2022
@srknzl
Copy link
Contributor Author

srknzl commented Mar 22, 2022

Thank you

@srknzl
Copy link
Contributor Author

srknzl commented Mar 23, 2022

@mscdex is it reasonable to add this to documentation in case someone asks it again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. question Issues that look for answers.
Projects
None yet
Development

No branches or pull requests

2 participants