diff --git a/profile_script.py b/profile_script.py new file mode 100644 index 0000000..1a72a06 --- /dev/null +++ b/profile_script.py @@ -0,0 +1,8 @@ +import cProfile # 导入性能分析模块 +from main import main + +if __name__ == '__main__': + + cProfile.run('main()') + # 运行 main 函数并将分析结果按累计时间排序后保存到 result.out 文件中。 + # cProfile.run('main()', filename="result.out", sort="cumulative") \ No newline at end of file diff --git a/result.out b/result.out new file mode 100644 index 0000000..5b1cafb Binary files /dev/null and b/result.out differ diff --git a/result.png b/result.png new file mode 100644 index 0000000..216a608 Binary files /dev/null and b/result.png differ