@@ -341,7 +341,7 @@ def copy_proto_files_to_tmp(
341341 if not osp .isdir (dst_dir ):
342342 os .makedirs (dst_dir )
343343 shutil .copy (osp .join (root , proto ), osp .join (proto_dir , proto ))
344- print (f"{ archive_name } : gathered .proto files in { time .time ()- start :.2f} s" )
344+ print (f"{ archive_name } : gathered .proto files in { time .time () - start :.2f} s" )
345345 return proto_dir , proto_files
346346
347347 def run_nsys_recipe (recipe , report_file , tmp_dir , output_queue ):
@@ -369,7 +369,7 @@ def run_nsys_recipe(recipe, report_file, tmp_dir, output_queue):
369369 if osp .isdir (full_path ) or not osp .exists (full_path ):
370370 continue
371371 output_queue .put ((ofile , full_path , COMPRESS_NONE ))
372- print (f"{ archive_name } : post-processing finished in { time .time ()- start :.2f} s" )
372+ print (f"{ archive_name } : post-processing finished in { time .time () - start :.2f} s" )
373373
374374 def compress_and_archive (prefix , file , output_queue ):
375375 """
@@ -403,7 +403,7 @@ def run_nsys_stats_report(report, report_file, tmp_dir, output_queue):
403403 )
404404 for ofile in iglob ("report_" + report + ".csv" , root_dir = tmp_dir ):
405405 compress_and_archive (tmp_dir , ofile , output_queue )
406- print (f"{ archive_name } : post-processing finished in { time .time ()- start :.2f} s" )
406+ print (f"{ archive_name } : post-processing finished in { time .time () - start :.2f} s" )
407407
408408 def save_device_stream_thread_names (tmp_dir , report , output_queue ):
409409 """
@@ -501,7 +501,7 @@ def table_columns(table_name):
501501 else :
502502 print ("WARNING: NOT writing device metadata, no device activity profiled?" )
503503 print (
504- f"{ archive_name } : extracted device/thread names in { time .time ()- start :.2f} s"
504+ f"{ archive_name } : extracted device/thread names in { time .time () - start :.2f} s"
505505 )
506506
507507 def find_pb_files_in_tmp (tmp_dir ):
@@ -553,7 +553,7 @@ def gather_source_files(
553553 continue
554554 assert osp .isabs (src_file ), f"{ src_file } is not absolute"
555555 output_queue .put (("sources" + src_file , src_file , COMPRESS_DEFLATE ))
556- print (f"{ archive_name } : gathered source code in { time .time ()- start :.2f} s" )
556+ print (f"{ archive_name } : gathered source code in { time .time () - start :.2f} s" )
557557
558558 def execute_analysis_scripts (mirror_dir , analysis_scripts ):
559559 """
@@ -631,7 +631,7 @@ def write_output_file(to_process, mirror_dir, analysis_scripts):
631631 for path_in_archive , local_path in analysis_outputs :
632632 archive .write (filename = local_path , arcname = path_in_archive )
633633 os .chmod (archive_name , 0o644 )
634- print (f"{ archive_name } : wrote in { time .time ()- start :.2f} s" )
634+ print (f"{ archive_name } : wrote in { time .time () - start :.2f} s" )
635635 if exit_code != 0 :
636636 print ("Exiting due to analysis script errors" )
637637 sys .exit (exit_code )
0 commit comments