@@ -365,6 +365,7 @@ def execute_thread_slice(self, q, target, toolchains, clean, test_ids, build_rep
365
365
clean_mbed_libs_options = True if self .opts_goanna_for_mbed_sdk or clean or self .opts_clean else None
366
366
367
367
profile = extract_profile (self .opts_parser , self .opts , toolchain )
368
+ stats_depth = self .opts .stats_depth or 2
368
369
369
370
370
371
try :
@@ -481,23 +482,13 @@ def execute_thread_slice(self, q, target, toolchains, clean, test_ids, build_rep
481
482
482
483
project_name = self .opts_firmware_global_name if self .opts_firmware_global_name else None
483
484
try :
484
- path = build_project (test .source_dir ,
485
- join (build_dir , test_id ),
486
- T ,
487
- toolchain ,
488
- test .dependencies ,
489
- clean = clean_project_options ,
490
- verbose = self .opts_verbose ,
491
- name = project_name ,
492
- macros = MACROS ,
493
- inc_dirs = INC_DIRS ,
494
- jobs = self .opts_jobs ,
495
- report = build_report ,
496
- properties = build_properties ,
497
- project_id = test_id ,
498
- project_description = test .get_description (),
499
- build_profile = profile ,
500
- stats_depth = stats_depth )
485
+ path = build_project (test .source_dir , join (build_dir , test_id ), T ,
486
+ toolchain , test .dependencies , clean = clean_project_options ,
487
+ verbose = self .opts_verbose , name = project_name , macros = MACROS ,
488
+ inc_dirs = INC_DIRS , jobs = self .opts_jobs , report = build_report ,
489
+ properties = build_properties , project_id = test_id ,
490
+ project_description = test .get_description (),
491
+ build_profile = profile , stats_depth = stats_depth )
501
492
502
493
except Exception , e :
503
494
project_name_str = project_name if project_name is not None else test_id
@@ -1988,6 +1979,12 @@ def get_default_test_options_parser():
1988
1979
default = False ,
1989
1980
action = "store_true" ,
1990
1981
help = 'Prints script version and exits' )
1982
+
1983
+ parser .add_argument ('--stats-depth' ,
1984
+ dest = 'stats_depth' ,
1985
+ default = 2 ,
1986
+ type = int ,
1987
+ help = "Depth level for static memory report" )
1991
1988
return parser
1992
1989
1993
1990
def test_path_to_name (path , base ):
0 commit comments