Home
last modified time | relevance | path

Searched refs:Utils (Results 1 – 25 of 133) sorted by relevance

123456

/developtools/smartperf_host/ide/test/trace/component/trace/base/
DUtils.test.ts16 import { Utils } from '../../../../../src/trace/component/trace/base/Utils';
22 let instance = Utils.getInstance();
23 let instance2 = Utils.getInstance();
28 let instance = Utils.getInstance();
33 expect(Utils.getEndState('D')).toBe('Uninterruptible Sleep');
37 expect(Utils.getEndState('')).toBe('');
41 expect(Utils.getEndState('ggg')).toBe('Unknown State');
45 expect(Utils.getStateColor('D')).toBe('#f19b38');
49 expect(Utils.getStateColor('R')).toBe('#a0b84d');
52 expect(Utils.getStateColor('I')).toBe('#673ab7');
[all …]
/developtools/smartperf_host/ide/test/hdc/common/
DUtils.test.ts16 import { Utils } from '../../../src/hdc/common/Utils';
20 expect(Utils.getLocalId()).toBeTruthy();
24 Utils.localId = 4294967295;
25 expect(Utils.getLocalId()).toBe(1);
29 expect(Utils.getSessionId()).toBeTruthy();
34 Utils.formatCommand(
45 expect(Utils.formatCommand('abc')).toEqual({
53 expect(Utils.formatCommand('hdc')).toEqual({
61 expect(Utils.numToHexString(1)).toBe('0x1');
65 expect(Utils.numToHexString(-1)).toBe('0xffffffff');
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/base/
DUtils.ts20 export class Utils { class
22 private static instance: Utils | null = null;
40 Utils.statusMap.set('D', 'Uninterruptible Sleep');
41 Utils.statusMap.set('D-NIO', 'Uninterruptible Sleep(non-IO)');
42 Utils.statusMap.set('D-IO', 'Uninterruptible Sleep(IO)');
43 Utils.statusMap.set('DK', 'Uninterruptible Sleep + Wake Kill');
44 Utils.statusMap.set('DK-NIO', 'Uninterruptible Sleep(non-IO) + Wake Kill');
45 Utils.statusMap.set('DK-IO', 'Uninterruptible Sleep(IO) + Wake Kill');
46 Utils.statusMap.set('S', 'Sleeping');
47 Utils.statusMap.set('R', 'Runnable');
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/smaps/
DTabPaneSmapsSample.ts18 import { Utils } from '../../base/Utils';
95 smaps.swapStr = Utils.getBinaryByteWithUnit(smaps.swap);
96 smaps.rssStr = Utils.getBinaryByteWithUnit(smaps.rss);
97 smaps.pssStr = Utils.getBinaryByteWithUnit(smaps.pss);
98 smaps.sizeStr = Utils.getBinaryByteWithUnit(smaps.size);
99 smaps.sharedCleanStr = Utils.getBinaryByteWithUnit(smaps.sharedClean);
100 smaps.sharedDirtyStr = Utils.getBinaryByteWithUnit(smaps.sharedDirty);
101 smaps.privateCleanStr = Utils.getBinaryByteWithUnit(smaps.privateClean);
102 smaps.privateDirtyStr = Utils.getBinaryByteWithUnit(smaps.privateDirty);
103 smaps.swapPssStr = Utils.getBinaryByteWithUnit(smaps.swapPss);
[all …]
DTabPaneSmapsStatistics.ts19 import { Utils } from '../../base/Utils';
114 smapsTreeObj.sizeStr = Utils.getBinaryByteWithUnit(smapsTreeObj.size);
115 smapsTreeObj.rssStr = Utils.getBinaryByteWithUnit(smapsTreeObj.rss);
116 smapsTreeObj.pssStr = Utils.getBinaryByteWithUnit(smapsTreeObj.pss);
119 smapsTreeObj.sharedCleanStr = Utils.getBinaryByteWithUnit(smapsTreeObj.sharedClean);
120 smapsTreeObj.sharedDirtyStr = Utils.getBinaryByteWithUnit(smapsTreeObj.sharedDirty);
121 smapsTreeObj.privateCleanStr = Utils.getBinaryByteWithUnit(smapsTreeObj.privateClean);
122 smapsTreeObj.privateDirtyStr = Utils.getBinaryByteWithUnit(smapsTreeObj.privateDirty);
123 smapsTreeObj.swapStr = Utils.getBinaryByteWithUnit(smapsTreeObj.swap);
124 smapsTreeObj.swapPssStr = Utils.getBinaryByteWithUnit(smapsTreeObj.swapPss);
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/native-memory/
DTabPaneNMStatstics.ts20 import { Utils } from '../../base/Utils';
56 Utils.getInstance().setCurrentSelectIPid(this.currentSelectIPid);
57 Utils.getInstance().initResponseTypeList(nativeStatisticsParam);
108 data.memoryTap = `Malloc ${Utils.getByteWithUnit(malloc.heapSize)}`;
110 data.memoryTap = `Mmap ${Utils.getByteWithUnit(malloc.heapSize)}`;
119 data.existingString = Utils.getByteWithUnit(data.existing);
120 data.freeByteString = Utils.getByteWithUnit(malloc.freeByte);
121 data.totalBytesString = Utils.getByteWithUnit(data.totalBytes);
122 data.maxStr = Utils.getByteWithUnit(malloc.heapSize);
148 data.freeByteString = Utils.getByteWithUnit(sub.freeByte);
[all …]
/developtools/smartperf_host/ide/src/trace/component/schedulingAnalysis/utils/
DUtils.ts16 import { Utils } from '../../trace/base/Utils';
24 avg: Utils.getProbablyTime(item.avg),
25 max: Utils.getProbablyTime(item.max),
26 min: Utils.getProbablyTime(item.min),
27 sum: Utils.getProbablyTime(item.sum),
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/renderer/
DLineChartRenderer.ets27 import Utils from '../utils/Utils'
124 textPaint.setX(positionX - Utils.calcTextWidth(textPaint,value) / 2);
125 …textPaint.setY(positionY - Utils.calcTextHeight(textPaint,value) - (Utils.calcTextHeight(textPaint…
129 imagePaint.setWidth(Utils.calcTextWidth(textPaint,value) + 20);
130 imagePaint.setHeight(Utils.calcTextHeight(textPaint,value) + 20);
131 imagePaint.setX(positionX - (Utils.calcTextWidth(textPaint,value) + 20) / 2);
132 imagePaint.setY(positionY - Utils.calcTextHeight(textPaint,value) - 20);
147 …xLinePaint.setEndPoint([this.pathViewModel.rect.right - this.pathViewModel.minOffset - Utils.calcT…
182 …firstPointX = Utils.convertDpToPixel(this.getXPosition(lineDataSet.getEntries().at(0).getX() * xSc…
183 …lastPointX = Utils.convertDpToPixel(this.getXPosition(lineDataSet.getEntries().at(this.animateXInd…
[all …]
DRadarChartRenderer.ets24 import Utils from '../utils/Utils'
121 Utils.getPosition(
130 surface="M"+Utils.convertDpToPixel(pOut.x)+" "+Utils.convertDpToPixel(pOut.y)+" ";
133 … surface += "L" + Utils.convertDpToPixel(pOut.x) + " " + Utils.convertDpToPixel(pOut.y) + " ";
142 surface+="L"+Utils.convertDpToPixel(center.x)+" "+Utils.convertDpToPixel(center.y)+" ";
180 let yoffset:number = Utils.convertDpToPixel(5);
181 let extraWidth=Utils.calcTextWidth(this.mValuePaint,this.radarChartMode.getYChartMax()+"");
190 iconsOffset.x = Utils.convertDpToPixel(iconsOffset.x);
191 iconsOffset.y = Utils.convertDpToPixel(iconsOffset.y);
197 Utils.getPosition(
[all …]
DXAxisRenderer.ets20 import Utils from '../utils/Utils'
86 let labelSize: FSize = Utils.calcTextSize(this.mAxisLabelPaint, longest);
89 let labelHeight = Utils.calcTextHeight(this.mAxisLabelPaint, "Q");
91 let labelRotatedSize: FSize = Utils.getSizeOfRotatedRectangleByDegrees(
217 let width = Utils.calcTextWidth(this.mAxisLabelPaint, label);
226 let width = Utils.calcTextWidth(this.mAxisLabelPaint, label);
244 return Utils.drawXAxisValue(formattedLabel, xResult, y,labelPaint , anchor, angleDegrees);
307 …="M"+Utils.convertDpToPixel(xResult)+" "+Utils.convertDpToPixel(this.mViewPortHandler.contentBotto…
369Utils.convertDpToPixel(this.mLimitLineSegmentsBuffer[0])+" "+Utils.convertDpToPixel(this.mLimitLin…
402 let labelLineHeight = Utils.calcTextHeight(this.mLimitLinePaint, label);
[all …]
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/charts/
DLineChart.ets31 import Utils from '../utils/Utils'
192 this.leftTextWidth = Utils.calcTextWidth(textPaint,this.getYLongestLabel(this.leftAxis));
193 this.rightTextWidth = Utils.calcTextWidth(textPaint,this.getYLongestLabel(this.rightAxis));
284 this.clipPath='M'+Utils.convertDpToPixel(rect.left)+' '+Utils.convertDpToPixel(0)
285 +'L'+Utils.convertDpToPixel(rect.right)+' '+Utils.convertDpToPixel(0)
286 +'L'+Utils.convertDpToPixel(rect.right)+' '+Utils.convertDpToPixel(this.height)
287 +'L'+Utils.convertDpToPixel(rect.left)+' '+Utils.convertDpToPixel(this.height)
293 this.clipYPath='M'+Utils.convertDpToPixel(this.minOffset/2)+' '+Utils.convertDpToPixel(rect.top)
294 +'L'+Utils.convertDpToPixel(this.width - this.minOffset/2)+' '+Utils.convertDpToPixel(rect.top)
295 … +'L'+Utils.convertDpToPixel(this.width - this.minOffset/2)+' '+Utils.convertDpToPixel(rect.bottom)
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/ability/
DTabPaneDmaAbility.ts22 import { Utils } from '../../base/Utils';
97 dmaItem.avgSizes = Utils.getBinaryByteWithUnit(Math.round(dmaItem.avgSize));
98 dmaItem.minSizes = Utils.getBinaryByteWithUnit(dmaItem.minSize);
99 dmaItem.maxSizes = Utils.getBinaryByteWithUnit(dmaItem.maxSize);
101 … this.total.avgSizes = Utils.getBinaryByteWithUnit(Math.round(this.total.avgSize / data.length));
102 this.total.minSizes = Utils.getBinaryByteWithUnit(this.total.minSize);
103 this.total.maxSizes = Utils.getBinaryByteWithUnit(this.total.maxSize);
DTabPaneGpuMemoryAbility.ts23 import { Utils } from '../../base/Utils';
100 gpuMemoryItem.avgSizes = Utils.getBinaryByteWithUnit(Math.round(gpuMemoryItem.avgSize));
101 gpuMemoryItem.minSizes = Utils.getBinaryByteWithUnit(gpuMemoryItem.minSize);
102 gpuMemoryItem.maxSizes = Utils.getBinaryByteWithUnit(gpuMemoryItem.maxSize);
104 … this.total.avgSizes = Utils.getBinaryByteWithUnit(Math.round(this.total.avgSize / data.length));
105 this.total.minSizes = Utils.getBinaryByteWithUnit(this.total.minSize);
106 this.total.maxSizes = Utils.getBinaryByteWithUnit(this.total.maxSize);
DTabPaneNetworkAbility.ts20 import { Utils } from '../../base/Utils';
95 … systemNetworkSummary.startTimeStr = Utils.getTimeStampHMS(systemNetworkSummary.startTime);
97 systemNetworkSummary.durationStr = Utils.getDurString(systemNetworkSummary.duration);
98 …systemNetworkSummary.dataReceivedStr = Utils.getBinaryByteWithUnit(systemNetworkSummary.dataReceiv…
99 …systemNetworkSummary.dataReceivedSecStr = Utils.getBinaryByteWithUnit(systemNetworkSummary.dataRec…
100 … systemNetworkSummary.dataSendStr = Utils.getBinaryByteWithUnit(systemNetworkSummary.dataSend);
101 …systemNetworkSummary.dataSendSecStr = Utils.getBinaryByteWithUnit(systemNetworkSummary.dataSendSec…
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/cpu/
DTabPaneCpuStateClick.ts18 import { Utils } from '../../base/Utils';
29 startNS: Utils.getTimeString(cpuStateClickValue.startTs),
31 dur: Utils.getProbablyTime(cpuStateClickValue.dur),
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/freq/
DTabPaneFreq.ts19 import { Utils } from '../../base/Utils';
30 startNS: Utils.getTimeString(freqData.startNS >= 0 ? freqData.startNS : 0),
32 dur: Utils.getProbablyTime(freqData.dur),
DTabPaneFreqLimit.ts19 import { Utils } from '../../base/Utils';
30 startNs: Utils.getTimeString(freqLimit.startNs >= 0 ? freqLimit.startNs : 0),
32 dur: Utils.getProbablyTime(freqLimit.dur),
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/vmtracker/
DTabPaneGpuMemoryVmTracker.ts22 import { Utils } from '../../base/Utils';
88 item.avgSizes = Utils.getBinaryByteWithUnit(Math.round(item.avgSize));
89 item.minSizes = Utils.getBinaryByteWithUnit(item.minSize);
90 item.maxSizes = Utils.getBinaryByteWithUnit(item.maxSize);
92 … this.total.avgSizes = Utils.getBinaryByteWithUnit(Math.round(this.total.avgSize / data.length));
93 this.total.minSizes = Utils.getBinaryByteWithUnit(this.total.minSize);
94 this.total.maxSizes = Utils.getBinaryByteWithUnit(this.total.maxSize);
DTabPaneVmTrackerShm.ts18 import { Utils } from '../../base/Utils';
65 filter.sumSizeStr = Utils.getBinaryByteWithUnit(filter.sum);
66 filter.avgSizeStr = Utils.getBinaryByteWithUnit(filter.avg);
67 filter.minSizeStr = Utils.getBinaryByteWithUnit(filter.min);
68 filter.maxSizeStr = Utils.getBinaryByteWithUnit(filter.max);
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/components/renderer/
DYAxisView.ets24 import Utils from '../../utils/Utils'
144 …this.clipPath = 'M'+Utils.convertDpToPixel(0)+' '+Utils.convertDpToPixel(this.translateY >= (this.…
145 …+'L'+Utils.convertDpToPixel(this.width)+' '+Utils.convertDpToPixel(this.translateY <= (this.height…
146 …+'L'+Utils.convertDpToPixel(this.width)+' '+Utils.convertDpToPixel(this.translateY > 0?this.lastHe…
147 …+'L'+Utils.convertDpToPixel(0)+' '+Utils.convertDpToPixel(this.translateY > 0?this.lastHeight-this…
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/file-system/
DTabPaneFilesystemStatistics.ts19 import { Utils } from '../../base/Utils';
82 logicalWrites: Utils.getBinaryByteWithUnit(item.logicalWrites),
83 logicalReads: Utils.getBinaryByteWithUnit(item.logicalReads),
84 otherFile: Utils.getBinaryByteWithUnit(item.otherFile),
85 allDuration: Utils.getProbablyTime(item.allDuration),
86 minDuration: Utils.getProbablyTime(item.minDuration),
87 maxDuration: Utils.getProbablyTime(item.maxDuration),
88 avgDuration: Utils.getProbablyTime(item.avgDuration),
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/gpu/
DTabPaneGpuClickSelect.ts21 import { Utils } from '../../base/Utils';
79 sizeStr: Utils.getBinaryByteWithUnit(item.size),
84 windowGroup.sizeStr = Utils.getBinaryByteWithUnit(windowGroup.size);
88 moduleGroup.sizeStr = Utils.getBinaryByteWithUnit(moduleGroup.size);
95 sizeStr: Utils.getBinaryByteWithUnit(item.size),
104 sizeStr: Utils.getBinaryByteWithUnit(item.size),
109 sizeStr: Utils.getBinaryByteWithUnit(item.size),
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/fps/
DTabPaneFps.ts19 import { Utils } from '../../base/Utils';
39 arr.map((e) => (e.timeStr = Utils.getTimeString(e.startNS)));
43 last.timeStr = Utils.getTimeString(last.startNS);
/developtools/smartperf_host/ide/src/trace/component/chart/
DSpCpuChart.ts22 import { Utils } from '../trace/base/Utils';
69 let p = Utils.PROCESS_MAP.get(it.processId!);
70 let t = Utils.THREAD_MAP.get(it.tid!);
71 let slice = Utils.SCHED_SLICE_MAP.get(`${it.id}-${it.startTime}`);
151 Utils.SCHED_SLICE_MAP.clear();
153Utils.SCHED_SLICE_MAP.set(`${value.itid}-${value.ts}`, { endState: value.endState, priority: value…
/developtools/smartperf_host/ide/src/trace/bean/
DNativeHook.ts16 import { Utils } from '../component/trace/base/Utils';
116 this.growth = Utils.getByteWithUnit(this.heapSize);
117 this.current = Utils.getByteWithUnit(this.currentSize);
118 this.totalGrowth = Utils.getByteWithUnit(this.total);

123456