From d6bbbcd15d7b142d4eb859eb38f08be0a4ab8e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=96=8C?= Date: Wed, 27 Sep 2023 08:05:43 +0000 Subject: [PATCH] =?UTF-8?q?update=20profiler/merge=5Fprofiling=5Ftimeline/?= =?UTF-8?q?main.py.=20=E5=88=A0=E9=99=A4pid=E4=B8=ADrank=5Fid=E7=9A=84?= =?UTF-8?q?=E6=8B=BC=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李斌 --- profiler/merge_profiling_timeline/main.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/profiler/merge_profiling_timeline/main.py b/profiler/merge_profiling_timeline/main.py index 4d242d478c..bedf25fca7 100644 --- a/profiler/merge_profiling_timeline/main.py +++ b/profiler/merge_profiling_timeline/main.py @@ -206,12 +206,6 @@ def merge_timeline_events(timeline_file_dict, process_list): if event.get("ts") and ts_difference_us: event["ts"] = str(Decimal(str(event["ts"])) + Decimal(str(ts_difference_us))) - # 区分不同rank的同一进程的pid - if isinstance(event.get("pid"), (str, int)): - # 合并GPU profiling/ after timeline pid modify - event["pid"] = int(''.join(x for x in str(event.get("pid")) if x.isdigit()) + - str(rank_id)) - # convert tid to int if isinstance(event.get("tid"), str): event["tid"] = int(''.join(x for x in event["tid"] if x.isdigit())) -- Gitee