-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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 process.getBlinkMemoryInfo() #17762
Conversation
Few questions before my plane takes off. How does this line up with the existing process.getMemoryInfo API? Can we / should we combine them? How does the unified heap (shipped in 73 iirc) impact these APIs? And then can we strongly document the answers to the above questions so when users look at these APIs they know what the values mean / represent |
@MarshallOfSound actually that blink API I've used seems to be private. I am getting this error:
trying to add the dependency results in another error:
|
5a211ee
to
9bb44ea
Compare
hmm, |
@miniak Any update on the above questions? |
I assume the question is on
We should not combine them because these are used for debugging different issue. Blink memory info will be used mostly to debug rendering/dom related memory issues.
There should not be any difference in terms of what these api's return for blink gc allocations, before and after unified heap.
Sure, we should do this. |
@MarshallOfSound can you please check @ahujasusheel's comment. I was not formatted properly and therefore appeared as spam. I've fixed it. |
@miniak Yeah I'm just waiting on the output of
and
Docs + Unified Heap impact |
@MarshallOfSound will talk to my colleagues about those and hopefully update the PR soon |
9bb44ea
to
8cffbcf
Compare
@MarshallOfSound I've updated the docs. Is it sufficient or do we need even more details? @ahujasusheel updated his reply, it should answer all the questions now (Unified Heap impact + no more "We are investigating this") |
8cffbcf
to
1d65460
Compare
Co-Authored-By: miniak <milan.burda@gmail.com>
a53bc93
to
73f397f
Compare
@MarshallOfSound are you ok with the current state of the PR? |
@@ -29,6 +29,7 @@ | |||
#include "native_mate/dictionary.h" | |||
#include "services/resource_coordinator/public/cpp/memory_instrumentation/global_memory_dump.h" | |||
#include "services/resource_coordinator/public/cpp/memory_instrumentation/memory_instrumentation.h" | |||
#include "third_party/blink/renderer/platform/heap/process_heap.h" // nogncheck |
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.
@nornagon
Is it ok to use nogncheck
to suppress gn error Can't include this header from here.
?
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.
we do it here as well
#include "third_party/blink/renderer/platform/weborigin/scheme_registry.h" // nogncheck
@alexeykuzmin are we going to merge this one or not? |
Release Notes Persisted
|
Description of Change
Expose blink memory information provided by https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/heap/process_heap.h
Checklist
npm test
passesRelease Notes
Notes: Added
process.getBlinkMemoryInfo()
.