Skip to content

Commit bdcae2c

Browse files
[Reliability] Fix gProfiler arm
1 parent f2980d6 commit bdcae2c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gprofiler/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)