You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
263 B

import cProfile # 导入性能分析模块
from main import main
if __name__ == '__main__':
# 运行 main 函数并将分析结果按累计时间排序后保存到 result.out 文件中。
cProfile.run('main()', filename="result.out", sort="cumulative")