File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -554,7 +554,7 @@ def _move_up_tree(tree, next_module):
554
554
if child ["name" ] == next_module :
555
555
return child
556
556
else :
557
- new_module = {"name" : next_module }
557
+ new_module = {"name" : next_module , "value" : 0 }
558
558
tree ["children" ].append (new_module )
559
559
return new_module
560
560
@@ -564,18 +564,15 @@ def generate_html(self, file_desc):
564
564
Positional arguments:
565
565
file_desc - the file to write out the final report to
566
566
"""
567
- tree_text = {"name" : ".text" }
568
- tree_bss = {"name" : ".bss" }
569
- tree_data = {"name" : ".data" }
567
+ tree_text = {"name" : ".text" , "value" : 0 }
568
+ tree_bss = {"name" : ".bss" , "value" : 0 }
569
+ tree_data = {"name" : ".data" , "value" : 0 }
570
570
for name , dct in self .modules .items ():
571
571
cur_text = tree_text
572
572
cur_bss = tree_bss
573
573
cur_data = tree_data
574
574
modules = name .split (sep )
575
575
while True :
576
- cur_text .setdefault ("value" , 0 )
577
- cur_data .setdefault ("value" , 0 )
578
- cur_bss .setdefault ("value" , 0 )
579
576
try :
580
577
cur_text ["value" ] += dct ['.text' ]
581
578
except KeyError :
You can’t perform that action at this time.
0 commit comments