scripts: footprint: fix node size computation
fix issue with (no paths) != sum(<no paths>) In some cases it was observed that item were being added to the node_no_paths and these only had a path of ':' hence no node was ever added. This resulted in the size of (no paths) to not be equal to the sum of it's children. I am not sure if this size should be a child named of no paths or if this should be part of the node_hidden_syms. I assumed it should be part of node_hidden_syms Signed-off-by: Kyle Micallef Bonnici <kylebonnici@hotmail.com>
This commit is contained in:
parent
f59a054ad7
commit
003fb88afd
1 changed files with 1 additions and 0 deletions
|
@ -735,6 +735,7 @@ def generate_any_tree(symbol_dict, total_size, path_prefix):
|
||||||
# Need to account for code and data where there are not emitted
|
# Need to account for code and data where there are not emitted
|
||||||
# symbols associated with them.
|
# symbols associated with them.
|
||||||
node_hidden_syms = TreeNode('(hidden)', "(hidden)", parent=root)
|
node_hidden_syms = TreeNode('(hidden)', "(hidden)", parent=root)
|
||||||
|
node_no_paths._size = sum_node_children_size(node_no_paths)
|
||||||
node_hidden_syms._size = root._size - sum_node_children_size(root)
|
node_hidden_syms._size = root._size - sum_node_children_size(root)
|
||||||
|
|
||||||
return root
|
return root
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue