@@ -126,6 +126,7 @@ def __init__(
126126 heartbeat_file_path : Optional [Path ] = None ,
127127 perfspect_path : Optional [Path ] = None ,
128128 perfspect_duration : int = 60 ,
129+ verbose : bool = False ,
129130 ):
130131 self ._output_dir = output_dir
131132 self ._flamegraph = flamegraph
@@ -182,6 +183,7 @@ def __init__(
182183 self ._profiler_state .stop_event ,
183184 perfspect_path = self ._perfspect_path ,
184185 perfspect_duration = self ._perfspect_duration ,
186+ verbose = verbose ,
185187 )
186188 else :
187189 self ._hw_metrics_monitor = NoopHWMetricsMonitor ()
@@ -1219,15 +1221,16 @@ def main() -> None:
12191221 duration = args .duration ,
12201222 profile_api_version = args .profile_api_version ,
12211223 profiling_mode = args .profiling_mode ,
1222- collect_hw_metrics = args . collect_hw_metrics ,
1224+ collect_hw_metrics = getattr ( args , " collect_hw_metrics" , False ) ,
12231225 profile_spawned_processes = args .profile_spawned_processes ,
12241226 remote_logs_handler = remote_logs_handler ,
12251227 controller_process = controller_process ,
12261228 processes_to_profile = processes_to_profile ,
12271229 external_metadata_path = external_metadata_path ,
12281230 heartbeat_file_path = heartbeat_file_path ,
1229- perfspect_path = args .tool_perfspect_path ,
1230- perfspect_duration = args .tool_perfspect_duration ,
1231+ perfspect_path = perfspect_path ,
1232+ perfspect_duration = getattr (args , "tool_perfspect_duration" , 60 ),
1233+ verbose = args .verbose ,
12311234 )
12321235 logger .info ("gProfiler initialized and ready to start profiling" )
12331236 if args .continuous :
0 commit comments