11import sys
2+ import time
23import argparse
34import json
45import logging
@@ -45,12 +46,15 @@ def main(generate_input, generate_output):
4546 prefolder = prefolder ,
4647 is_multiapi = package ["isMultiapi" ],
4748 )
49+
50+ changelog_generation_start_time = time .time ()
4851 try :
4952 md_output = execute_func_with_timeout (change_log_func )
5053 except multiprocessing .TimeoutError :
5154 md_output = "change log generation was timeout!!!"
5255 except :
5356 md_output = "change log generation failed!!!"
57+ _LOGGER .info (f"changelog generation cost time: { int (time .time () - changelog_generation_start_time )} seconds" )
5458 package ["changelog" ] = {
5559 "content" : md_output ,
5660 "hasBreakingChange" : "Breaking Changes" in md_output ,
@@ -61,6 +65,7 @@ def main(generate_input, generate_output):
6165 _LOGGER .info (f"[PACKAGE]({ package_name } )[CHANGELOG]:{ md_output } " )
6266 # Generate api stub File
6367 folder_name = package ["path" ][0 ]
68+ apiview_start_time = time .time ()
6469 try :
6570 package_path = Path (sdk_folder , folder_name , package_name )
6671 check_call (
@@ -82,6 +87,7 @@ def main(generate_input, generate_output):
8287 package ["apiViewArtifact" ] = str (Path (package_path , file ))
8388 except Exception as e :
8489 _LOGGER .debug (f"Fail to generate ApiView token file for { package_name } : { e } " )
90+ _LOGGER .info (f"apiview generation cost time: { int (time .time () - apiview_start_time )} seconds" )
8591
8692 # check generated files and update package["version"]
8793 if package_name .startswith ("azure-mgmt-" ):
0 commit comments