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.
This pr refactors out the code that does the filtering of parenthesized nodes like
(idle)
and(garbage collector)
incpu-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.