From 8053d51dcb3020516f77630c19f710d103c2d0b8 Mon Sep 17 00:00:00 2001 From: jichuan Date: Fri, 15 Sep 2023 17:58:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20hiperf=E8=B7=9F=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E5=AD=98=E5=9C=A8=E7=9A=84=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E4=B8=8B=E6=89=93=E5=BC=80=E6=8A=A5=E9=94=99=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jichuan --- ide/src/trace/component/chart/SpHiPerf.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ide/src/trace/component/chart/SpHiPerf.ts b/ide/src/trace/component/chart/SpHiPerf.ts index b600b27b..84376c23 100644 --- a/ide/src/trace/component/chart/SpHiPerf.ts +++ b/ide/src/trace/component/chart/SpHiPerf.ts @@ -114,9 +114,6 @@ export class SpHiPerf { row.rowParentId = ''; row.folder = true; row.style.height = '40px'; - if (SpChartManager.APP_STARTUP_PID_ARR.find(pid => pid === process.pid) !== undefined) { - row.addTemplateTypes('AppStartup'); - } row.addTemplateTypes('HiPerf'); if (SpHiPerf.stringResult?.existA === true) { row.name = `HiPerf (All)`; @@ -236,7 +233,10 @@ export class SpHiPerf { row.rowParentId = 'HiPerf'; row.rowHidden = !this.rowFolder.expansion; row.folder = true; - + if (SpChartManager.APP_STARTUP_PID_ARR.find(pid => pid === process.pid) !== undefined) { + row.addTemplateTypes('AppStartup'); + } + row.addTemplateTypes('HiPerf'); row.name = `${process.processName || 'Process'} [${process.pid}]`; row.folderPaddingLeft = 6; row.style.height = '40px'; -- Gitee