FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lib: add options to the heap snapshot APIs by joyeecheung · Pull Request #44989 · nodejs/node · GitHub

/ node Public

lib: add options to the heap snapshot APIs - #44989

Closed
joyeecheung wants to merge 5 commits into
nodejs:mainfrom
joyeecheung:heapsnapshot-options
Closed

lib: add options to the heap snapshot APIs#44989
joyeecheung wants to merge 5 commits into
nodejs:mainfrom
joyeecheung:heapsnapshot-options

Conversation

Copy link
Copy Markdown
Member

Support configuration of the HeapSnapshotMode and NumericsMode fields inf HeapSnapshotOptions in the JS APIs for heap snapshots.

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Oct 13, 2022
Comment thread doc/api/v8.md Outdated

joyeecheung Oct 13, 2022
edited
Loading

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I am actually not sure if we should use constants (e.g. strings) for these, suggestions are welcome. Also AFAIK exposeInternals doesn't currently change anything for us because we don't use any embedder tracing mechanism provided by V8 that could would make a difference here, but this might change in the future.

Comment thread doc/api/worker_threads.md Outdated
Comment thread doc/api/v8.md Outdated
Comment thread doc/api/v8.md Outdated
Comment thread lib/internal/heap_utils.js Outdated
Comment thread lib/internal/worker.js Outdated
Comment thread doc/api/v8.md Outdated
Comment thread doc/api/v8.md Outdated
Comment thread doc/api/v8.md Outdated
Comment thread doc/api/worker_threads.md Outdated
Comment thread lib/internal/heap_utils.js Outdated
Support configuration of the HeapSnapshotMode and NumericsMode
fields inf HeapSnapshotOptions in the JS APIs for heap snapshots.

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

const {
exposeInternals = false,
exposeNumericValues = false,
} = options;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Updated to use destructuring + default values because assignment doesn't work with kEmtpyObject. @jasnell @aduh95

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

joyeecheung added a commit that referenced this pull request Nov 8, 2022
Support configuration of the HeapSnapshotMode and NumericsMode
fields inf HeapSnapshotOptions in the JS APIs for heap snapshots.

PR-URL: #44989
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>

Copy link
Copy Markdown
Member Author

Landed in b872d30

joyeecheung closed this Nov 8, 2022
RafaelGSS pushed a commit that referenced this pull request Nov 10, 2022
Support configuration of the HeapSnapshotMode and NumericsMode
fields inf HeapSnapshotOptions in the JS APIs for heap snapshots.

PR-URL: #44989
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
RafaelGSS mentioned this pull request Nov 10, 2022

Copy link
Copy Markdown
Contributor

@joyeecheung this broke when landing in v18.x-staging. Do you mind opening a backport PR for this?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL