diff --git a/build/compile_script/ark.py b/build/compile_script/ark.py index 97badc5abcef721fd9bea13604df14d24a712731..7e01fd3a9799ade13cc8d5b86413d316722a2ea8 100755 --- a/build/compile_script/ark.py +++ b/build/compile_script/ark.py @@ -758,6 +758,7 @@ class ArkPy: boundary_value = '-10' run_count = '10' code_v = '' + run_interpreter = False if len(arg_list) >= 2 and arg_list[1] == 'report': report = True if len(arg_list) >= 3 and arg_list[2]: @@ -768,6 +769,8 @@ class ArkPy: run_count = arg_list[4] if len(arg_list) >= 6 and arg_list[5]: code_v = arg_list[5] + if len(arg_list) >= 7 and arg_list[6] == '--run-interpreter': + run_interpreter = True self.build_for_gn_target(out_path, gn_args, ["default"], self.GN_TARGET_LOG_FILE_NAME) workload_cmd = "cd arkcompiler/ets_runtime/test/workloadtest/ && python3 work_load.py" \ " --code-path {0}" \ @@ -777,6 +780,8 @@ class ArkPy: " --run-count {4}" \ " --code-v {5}" \ .format(root_dir, report, tools, boundary_value, run_count, code_v) + if run_interpreter: + workload_cmd += " --run-interpreter true" workload_log_path = os.path.join(out_path, log_file_name) str_to_workload_log = "================================\nwokload_time: {0}\nwokload_target: {1}\n\n".format( str_of_time_now(), 'file')