From a2999a8b49dbd50621b24a208f2cc26f162fd1f1 Mon Sep 17 00:00:00 2001 From: yuye <15675110562@163.com> Date: Fri, 25 Aug 2023 11:44:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=94=A8=E6=88=B7=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=90=88=E5=B9=B6=E5=90=8E=E7=9A=84timeline?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- profiler/merge_profiling_timeline/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/profiler/merge_profiling_timeline/main.py b/profiler/merge_profiling_timeline/main.py index c2b3be9ca1..4e39515917 100644 --- a/profiler/merge_profiling_timeline/main.py +++ b/profiler/merge_profiling_timeline/main.py @@ -220,11 +220,10 @@ def merge_timeline_events(timeline_file_dict, process_list): event["args"]["name"] = event["args"]["name"] + f"_{rank_id}" new_events.append(event) - - output_path = os.path.join(args.output, f"msprof_merged_{len(timeline_file_dict)}p.json") - with open(output_path, 'w') as f: + out_path = f"{args.output}_merged.json" + with open(out_path, 'w') as f: json.dump(new_events, f) - print(f"timeline merged output path: {output_path}") + print(f"timeline merged output path: {out_path}") def parse_args(): -- Gitee