Skip to content
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

cpu-profile-to-tree: Refactor out the filtering of parenthesized nodes #258

Merged

Conversation

kazarmy
Copy link
Contributor

@kazarmy kazarmy commented Jun 18, 2022

This pr refactors out the code that does the filtering of parenthesized nodes like (idle) and (garbage collector) in cpu-profile-to-tree.js, as well as doing some related cleanup and testing.

As a side note, it appears that (program) refers to V8 infrastructure code and that (idle), (garbage collector) and (program) are guaranteed not to have any children but this does assume that I'm reading the code correctly and that conclusions made on Node's V8 code is generalizable to other V8 implementations.

Copy link
Collaborator

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 0ba1e2b into davidmarkclements:master Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants