diff --git a/ide/src/trace/bean/BoxSelection.ts b/ide/src/trace/bean/BoxSelection.ts index 791527d5a6f2e724762a1ab30f1e93ef19fc65e3..4346a22b8b9c003698f3b968f4f297b600382d85 100644 --- a/ide/src/trace/bean/BoxSelection.ts +++ b/ide/src/trace/bean/BoxSelection.ts @@ -134,6 +134,7 @@ export class SelectionData { wallDuration: number = 0; wallDurationFormat: string = ''; avgDuration: string = ''; + maxDuration: string = ''; occurrences: number = 0; state: string = ''; trackId: number = 0; diff --git a/ide/src/trace/component/SpSystemTrace.ts b/ide/src/trace/component/SpSystemTrace.ts index fc9ae3bb8d6da8f798a22140fb7055fbf8f053c0..84c496ad410dce3796a8f734fc30dda3f36c44a3 100644 --- a/ide/src/trace/component/SpSystemTrace.ts +++ b/ide/src/trace/component/SpSystemTrace.ts @@ -105,7 +105,6 @@ import { TabPaneCounterSample } from './trace/sheet/cpu/TabPaneCounterSample.js' import { LitSearch } from './trace/search/Search.js'; import { TabPaneFlag } from './trace/timer-shaft/TabPaneFlag.js'; import { LitTabpane } from '../../base-ui/tabs/lit-tabpane.js'; -import { SpKeyboard } from '../component/SpKeyboard.js' import { HiPerfCallChartStruct } from '../database/ui-worker/ProcedureWorkerHiPerfCallChart.js'; import { type HiSysEventStruct } from '../database/ui-worker/ProcedureWorkerHiSysEvent.js'; import { InitAnalysis } from '../database/logic-worker/ProcedureLogicWorkerCommon.js'; diff --git a/ide/src/trace/component/trace/sheet/irq/TabPaneIrqCounter.ts b/ide/src/trace/component/trace/sheet/irq/TabPaneIrqCounter.ts index 7207250fe6155c355833e4253c26d80fdfd1a461..004bd936a58ab29aa3b99cfa582d083e046bac57 100644 --- a/ide/src/trace/component/trace/sheet/irq/TabPaneIrqCounter.ts +++ b/ide/src/trace/component/trace/sheet/irq/TabPaneIrqCounter.ts @@ -38,9 +38,7 @@ export class TabPaneIrqCounter extends BaseElement { let counters = collect.get(key); let selectCounterData = this.createSelectCounterData(key, counters); sumCount += Number.parseInt(selectCounterData.count || '0'); - selectCounterData.avgDuration = Utils.getProbablyTime( - selectCounterData.wallDuration / parseInt(selectCounterData.count) - ); + selectCounterData.avgDuration = (selectCounterData.wallDuration / parseInt(selectCounterData.count) / 1000).toFixed(2); dataSource.push(selectCounterData); } this.irqCounterSource = dataSource; @@ -77,9 +75,11 @@ export class TabPaneIrqCounter extends BaseElement { - + - + + + @@ -95,7 +95,9 @@ export class TabPaneIrqCounter extends BaseElement { for (let index = 0; index < list.length; index++) { selectData.wallDuration += list[index].dur; } - selectData.wallDurationFormat = Utils.getProbablyTime(selectData.wallDuration); + list.sort((a, b) => b.dur - a.dur); + selectData.maxDuration = (list[0].dur / 1000).toFixed(2); + selectData.wallDurationFormat = (selectData.wallDuration / 1000).toFixed(2); } return selectData; }