-
Notifications
You must be signed in to change notification settings - Fork 29.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
src: export v8.GetHeapCodeAndMetadataStatistics() #27978
Conversation
472d571
to
e8bb983
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.
Looks good code-wise, although I have to admit to not really being sure about what use cases there are
@addaleax main use case here is monitoring of node.js applications. |
lib/v8.js
Outdated
kNumberOfDetachedContextsIndex | ||
|
||
// Properties for heap code statistics buffer extraction. | ||
kCodenAndMetadataSizeIndex, |
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.
Typo: kCodeAndMetadataSizeIndex
(no n
after kCode
)
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.
@bnoordhuis typo fixed. Commit squashed with original commit
Export statistic provided by V8 through HeapCodeStatistics class and and GetHeapCodeAndMetadataStatistics function to v8 Node.js module
e8bb983
to
07967f6
Compare
Guys, |
@yvasiyarov with three approvals it should be ready to land as long as the CI is green (I started one). |
Export statistic provided by V8 through HeapCodeStatistics class and and GetHeapCodeAndMetadataStatistics function to v8 Node.js module PR-URL: nodejs#27978 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Landed in 21a7c69. Thanks for the contribution! 🎉 |
Export statistic provided by V8 through HeapCodeStatistics class and and GetHeapCodeAndMetadataStatistics function to v8 Node.js module PR-URL: #27978 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Notable changes: * assert: * Legacy mode deprecation (`DEP0089`) is revoked (Colin Ihrig) #28892 * crypto: * The `outputLength` option is added to `crypto.createHash` (Tobias Nießen) #28805 * The `maxmem` range is increased from 32 to 53 bits (Tobias Nießen) #28799 * n-api: * Added APIs for per-instance state management (Gabriel Schulhof) #28682 * report: * Network interfaces get included in the report (cjihrig) #28911 * src: * `v8.getHeapCodeStatistics()` is now exported (Yuriy Vasiyarov) #27978 PR-URL: #29017
Notable changes: * assert: * Legacy mode deprecation (`DEP0089`) is revoked (Colin Ihrig) nodejs#28892 * crypto: * The `outputLength` option is added to `crypto.createHash` (Tobias Nießen) nodejs#28805 * The `maxmem` range is increased from 32 to 53 bits (Tobias Nießen) nodejs#28799 * n-api: * Added APIs for per-instance state management (Gabriel Schulhof) nodejs#28682 * report: * Network interfaces get included in the report (cjihrig) nodejs#28911 * src: * `v8.getHeapCodeStatistics()` is now exported (Yuriy Vasiyarov) nodejs#27978 PR-URL: nodejs#29017
Export statistic provided by V8 through HeapCodeStatistics class and
and GetHeapCodeAndMetadataStatistics function to v8 Node.js module
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes