-
Notifications
You must be signed in to change notification settings - Fork 15k
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
feat: add memory to app.getAppMetrics() #18831
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just gonna have to ask the hard question here, what dependencies does this API have on Chromium internals / content APIs. We've been hurt twice now by memory APIs being removed internally in Chromium, if this one could potentially have the same issue we should seriously consider not adding it.
@MarshallOfSound Added more details to the description. We've been affected by the removal of memory info due to the Chromium changes as our telemetry depends on it heavily. |
Compilation on Windows fails:
|
c35f3df
to
557f2c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be preferable to support this on Linux, too.
f938938
to
1fea3a7
Compare
4e2f51c
to
c19dd24
Compare
c19dd24
to
3b934d5
Compare
@ckerr can you please check the Linux version? |
@zcbenz can you please check again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scaffolding, tests, doc changes, and Linux code all LGTM. Tested on Ubuntu 17.04 👍
The Mac and Windows changes look sane too but I haven't tested them personally. If someone else wants to also give this a pass, that would be great.
(approval given that all of the issues i would have raised have all been addressed) |
Release Notes Persisted
|
Description of Change
Bring back memory info per process returned by
app.getAppMetrics()
. Follow-up to #18718.It does not depend on Chromium internals, it’s calling the OS API directly.
Checklist
npm test
passesRelease Notes
Notes: Added
memory
toapp.getAppMetrics()
.