-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Expose cppgc::CppHeap::CollectStatistics() in v8 module #56533
Labels
diag-agenda
Issues and PRs to discuss during the meetings of the diagnostics working group.
feature request
Issues that request new features to be added to Node.js.
Comments
+1 from me |
Given the support for this, I'd like to start working on it! |
aduh95
pushed a commit
that referenced
this issue
Mar 9, 2025
Expose `CppHeap` data via `cppgc::CppHeap::CollectStatistics()` in the v8 module. PR-URL: #57146 Fixes: #56533 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
aduh95
pushed a commit
that referenced
this issue
Mar 9, 2025
Expose `CppHeap` data via `cppgc::CppHeap::CollectStatistics()` in the v8 module. PR-URL: #57146 Fixes: #56533 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
diag-agenda
Issues and PRs to discuss during the meetings of the diagnostics working group.
feature request
Issues that request new features to be added to Node.js.
What is the problem this feature will solve?
Since we've been migrating things to use
CppHeap
, we have a bunch of extra GC-managed memory which has become a bit less mysterious to V8. This means we can take better advantage of V8 interfaces to get observability into this memory.What is the feature you are proposing to solve the problem?
It would likely be an easy win to expose
CppHeap
data viacppgc::CppHeap::CollectStatistics()
in thev8
module.cc @nodejs/diagnostics
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: