File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1219,15 +1219,15 @@ def main() -> None:
12191219 duration = args .duration ,
12201220 profile_api_version = args .profile_api_version ,
12211221 profiling_mode = args .profiling_mode ,
1222- collect_hw_metrics = args . collect_hw_metrics ,
1222+ collect_hw_metrics = getattr ( args , " collect_hw_metrics" , False ) ,
12231223 profile_spawned_processes = args .profile_spawned_processes ,
12241224 remote_logs_handler = remote_logs_handler ,
12251225 controller_process = controller_process ,
12261226 processes_to_profile = processes_to_profile ,
12271227 external_metadata_path = external_metadata_path ,
12281228 heartbeat_file_path = heartbeat_file_path ,
1229- perfspect_path = args . tool_perfspect_path ,
1230- perfspect_duration = args . tool_perfspect_duration ,
1229+ perfspect_path = perfspect_path ,
1230+ perfspect_duration = getattr ( args , " tool_perfspect_duration" , 60 ) ,
12311231 )
12321232 logger .info ("gProfiler initialized and ready to start profiling" )
12331233 if args .continuous :
You can’t perform that action at this time.
0 commit comments