| /developtools/smartperf_host/ide/src/trace/database/ui-worker/ |
| D | ProcedureWorker.ts | 122 function match(type: string, req: RequestMessage): void { 126 req.lazyRefresh = dataList[type].length > 20000; 128 renders[it].render(req, dataList[type], dataFilter[type], dataList2); 171 let req = new RequestMessage(); variable 172 setReq(req, e); 174 match(req.type!, req); 192 function setReq(req: RequestMessage, e: any) { 193 req.canvas = canvasList[e.data.type]; 194 req.context = contextList[e.data.type]; 195 req.type = e.data.type as string; [all …]
|
| D | ProcedureWorkerEnergyAnomaly.ts | 32 req: { 50 req.appName, 51 req.useCache || !TraceRow.range!.refresh 59 drawLoadingFrame(req.context, row.dataListCache, row); 60 req.context.beginPath(); 64 drawLegend(req, isDark); 66 EnergyAnomalyStruct.draw(req.context, re); 73 req.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 74 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 75 req.context.closePath(); [all …]
|
| D | ProcedureWorkerEnergyPower.ts | 74 export function drawLegend(req: any, isDark?: boolean) { 77 let text = req.context.measureText(textList[index]); 78 req.context.fillStyle = EnergyPowerStruct.getHistogramColor(textList[index]); 79 req.context.globalAlpha = 1; 80 let canvasEndX = req.context.canvas.clientWidth - EnergyPowerStruct.OFFSET_WIDTH; 83 req!.context.fillRect(canvasEndX - EnergyPowerStruct.powerItemNumber * 80, 12, 8, 8); 84 req.context.globalAlpha = 1; 85 req.context.fillStyle = textColor; 86 req.context.textBaseline = 'middle'; 87 …req.context.fillText(textList[index], canvasEndX - EnergyPowerStruct.powerItemNumber * 80 + 10, 18… [all …]
|
| D | ProcedureWorkerNetworkAbility.ts | 28 req: { 47 useCache: req.useCache || !(TraceRow.range?.refresh ?? false), 49 drawLoadingFrame(req.context, networkAbilityRow.dataListCache, networkAbilityRow); 50 req.context.beginPath(); 53 … NetworkAbilityMonitorStruct.draw(req.context, re, req.maxNetworkRate, networkAbilityRow.isHover); 66 req.context.closePath(); 67 let textMetrics = req.context.measureText(req.maxNetworkRateName); 68 req.context.globalAlpha = 0.8; 69 req.context.fillStyle = '#f0f0f0'; 70 req.context.fillRect(0, 5, textMetrics.width + 8, 18); [all …]
|
| D | ProcedureWorkerCpuAbility.ts | 30 req: { 49 useCache: req.useCache || !(TraceRow.range?.refresh ?? false), 52 drawLoadingFrame(req.context, cpuAbilityRow.dataListCache, cpuAbilityRow); 53 req.context.beginPath(); 55 CpuAbilityMonitorStruct.draw(req.context, re, req.maxCpuUtilization, cpuAbilityRow.isHover); 68 req.context.closePath(); 69 let textMetrics = req.context.measureText(req.maxCpuUtilizationName); 70 req.context.globalAlpha = 0.8; 71 req.context.fillStyle = '#f0f0f0'; 72 req.context.fillRect(0, 5, textMetrics.width + 8, 18); [all …]
|
| D | ProcedureWorkerEnergySystem.ts | 28 req: { 44 req.useCache || !TraceRow.range!.refresh 46 drawLoadingFrame(req.context, row.dataListCache, row); 47 drawProcedureWorkerEnergy(req, systemFilter, row); 51 function drawProcedureWorkerEnergy(req: any, systemFilter: Array<any>, row: TraceRow<EnergySystemSt… 52 req.context.beginPath(); 57 EnergySystemStruct.draw(req.context, energySysStruct); 95 drawLegend(req, isDark); 96 req.context.closePath(); 99 export function drawLegend(req: RequestMessage | any, isDark?: boolean) { [all …]
|
| D | ProcedureWorkerEnergyState.ts | 21 req: { 39 req.useCache || !TraceRow.range!.refresh 41 drawLoadingFrame(req.context, row.dataListCache, row); 42 req.context.beginPath(); 46 EnergyStateStruct.draw(req.context, re, req.maxState, req.maxStateName); 53 if (req.maxStateName != 'enable' && req.maxStateName != 'disable' && req.maxStateName != '-1') { 54 let s = req.maxStateName; 55 let textMetrics = req.context.measureText(s); 56 req.context.globalAlpha = 1.0; 57 req.context.fillStyle = '#f0f0f0'; [all …]
|
| D | ProcedureWorkerMemoryAbility.ts | 29 req: { 48 useCache: req.useCache || !(TraceRow.range?.refresh ?? false), 50 drawLoadingFrame(req.context, memoryAbilityRow.dataListCache, memoryAbilityRow); 51 req.context.beginPath(); 54 MemoryAbilityMonitorStruct.draw(req.context, re, req.maxMemoryByte, memoryAbilityRow.isHover); 67 req.context.closePath(); 68 let textMetrics = req.context.measureText(req.maxMemoryByteName); 69 req.context.globalAlpha = 0.8; 70 req.context.fillStyle = '#f0f0f0'; 71 req.context.fillRect(0, 5, textMetrics.width + 8, 18); [all …]
|
| D | ProcedureWorkerDiskIoAbility.ts | 29 req: { 48 useCache: req.useCache || !(TraceRow.range?.refresh ?? false), 50 drawLoadingFrame(req.context, diskIoAbilityRow.dataListCache, diskIoAbilityRow); 51 req.context.beginPath(); 54 DiskAbilityMonitorStruct.draw(req.context, re, req.maxDiskRate, diskIoAbilityRow.isHover); 67 req.context.closePath(); 68 let textMetrics = req.context.measureText(req.maxDiskRateName); 69 req.context.globalAlpha = 0.8; 70 req.context.fillStyle = '#f0f0f0'; 71 req.context.fillRect(0, 5, textMetrics.width + 8, 18); [all …]
|
| D | ProduceWorkerSdkCounter.ts | 21 req: { 32 let maxCounter = req.maxValue; 33 let maxCounterName = req.maxName; 41 req.useCache || (TraceRow.range?.refresh ?? false) 43 req.context.beginPath(); 50 CounterStruct.draw(req.context, re, maxCounter); 55 req.context.closePath(); 56 let textMetrics = req.context.measureText(maxCounterName); 57 req.context.globalAlpha = 0.8; 58 req.context.fillStyle = '#f0f0f0'; [all …]
|
| D | ProcedureWorkerFPS.ts | 21 req: { 37 req.useCache || !TraceRow.range!.refresh 39 req.context.beginPath(); 42 FpsStruct.draw(req.context, re); 49 req.context.closePath(); 51 let textMetrics = req.context.measureText(maxFps); 52 req.context.globalAlpha = 0.8; 53 req.context.fillStyle = '#f0f0f0'; 54 req.context.fillRect(0, 5, textMetrics.width + 8, 18); 55 req.context.globalAlpha = 1; [all …]
|
| D | ProcedureWorkerProcess.ts | 33 renderMainThread(req: any, row: TraceRow<ProcessStruct>) { 43 req.useCache || !TraceRow.range!.refresh 45 drawLoadingFrame(req.context, filter, row, true); 46 req.context.beginPath(); 50 req.context.fillStyle = ColorUtils.colorForTid(req.pid || 0); 52 ProcessStruct.draw(req.context, path, re, miniHeight); 54 req.context.fill(path); 55 req.context.closePath();
|
| D | ProcedureWorkerVirtualMemory.ts | 33 req: { 47 req.useCache || (TraceRow.range?.refresh ?? false) 49 drawLoadingFrame(req.context, row.dataListCache, row); 50 req.context.beginPath(); 57 VirtualMemoryStruct.draw(req.context, re); 60 req.context.closePath();
|
| D | ProcedureWorkerFrameSpacing.ts | 32 req: { 50 req.animationRanges, 51 req.useCache || !TraceRow.range!.refresh 53 drawLoadingFrame(req.context, row.dataListCache, row); 54 this.render(req, frameSpacingList, row); 58 req: { 68 if (req.animationRanges.length > 0 && req.animationRanges[0] && frameSpacingFilter.length > 0) { 76 if (req.frameRate) { 78 smallTickStandard = smallTick[req.frameRate]; 99 …this.drawTraceRow(frameSpacingFilter, selectUnitWidth, req, row, minValue, maxValue, smallTickStan… [all …]
|
| D | ProcedureWorkerMem.ts | 37 req: { 53 req.useCache || !TraceRow.range!.refresh 55 drawLoadingFrame(req.context, memFilter, row); 56 req.context.beginPath(); 59 ProcessMemStruct.draw(req.context, re); 70 req.context.closePath();
|
| D | ProcedureWorkerHiSysEvent.ts | 22 req: { 47 useCache: req.useCache || !(TraceRow.range?.refresh ?? false), 57 useCache: req.useCache || !(TraceRow.range?.refresh ?? false), 60 drawLoadingFrame(req.context, row.dataListCache, row); 61 req.context.beginPath(); 64 HiSysEventStruct.draw(req.context, re); 69 req.context.closePath();
|
| /developtools/smartperf_host/ide/src/trace/database/ui-worker/hiperf/ |
| D | ProcedureWorkerHiPerfThread2.ts | 21 renderMainThread(req: any, row: TraceRow<HiPerfThreadStruct>): void { 23 let groupBy10MS = req.scale > 30_000_000; 26 req.context.font = 'normal 12px Arial'; 27 textMetrics = req.context.measureText(''); 30 drawLoadingFrame(req.context, hiperfThreadFilter, row); 31 req.context.beginPath(); 32 req.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 33 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 39 HiPerfThreadStruct.draw(req.context, normalPath, specPath, re, groupBy10MS, textMetrics); 51 req.context.fill(normalPath); [all …]
|
| D | ProcedureWorkerHiPerfCPU2.ts | 21 renderMainThread(req: any, row: TraceRow<HiPerfCpuStruct>): void { 23 let groupBy10MS = req.scale > 30_000_000; 26 req.context.font = 'normal 12px Arial'; 27 textMetrics = req.context.measureText(''); 30 drawLoadingFrame(req.context, hiperfCpu2Filter, row); 31 req.context.beginPath(); 32 req.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 33 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 47 HiPerfCpuStruct.draw(req.context, normalPath, normalPath, re, groupBy10MS, textMetrics); 51 req.context.fill(normalPath); [all …]
|
| D | ProcedureWorkerHiPerfProcess2.ts | 21 renderMainThread(req: any, row: TraceRow<HiPerfProcessStruct>): void { 23 let groupBy10MS = req.scale > 30_000_000; 26 req.context.font = 'normal 12px Arial'; 27 textMetrics = req.context.measureText(''); 30 drawLoadingFrame(req.context, hiperfProcessFilter, row); 31 req.context.beginPath(); 32 req.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 33 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 39 HiPerfProcessStruct.draw(req.context, normalPath, specPath, it, groupBy10MS, textMetrics); 51 req.context.fill(normalPath); [all …]
|
| /developtools/smartperf_host/ide/src/trace/database/logic-worker/ |
| D | ProcedureLogicWorker.ts | 35 function match(req: any) { 36 if (req.type === 'clear') { 41 if (req.type === 'cache-data-dict') { 42 DataCache.getInstance().dataDict = req.params.dataDict; 44 id: req.id, 45 action: req.type, 51 if (req.type && req.type.startsWith(it as string)) { 52 logicWorker[it].handle(req);
|
| /developtools/hdc/src/host/ |
| D | host_unity.cpp | 57 void HdcHostUnity::OnFileClose(uv_fs_t *req) in OnFileClose() argument 59 uv_fs_req_cleanup(req); in OnFileClose() 60 ContextUnity *context = reinterpret_cast<ContextUnity *>(req->data); in OnFileClose() 81 void HdcHostUnity::OnFileIO(uv_fs_t *req) in OnFileIO() argument 83 CtxUnityIO *contextIO = reinterpret_cast<CtxUnityIO *>(req->data); in OnFileIO() 87 uv_fs_req_cleanup(req); in OnFileIO() 90 if (req->result <= 0) { in OnFileIO() 91 if (req->result < 0) { in OnFileIO() 94 uv_strerror_r((int)req->result, buf, bufSize); in OnFileIO() 99 context->fileIOIndex += req->result; in OnFileIO() [all …]
|
| /developtools/hdc/src/common/ |
| D | transfer.cpp | 89 uv_fs_t *req = &ioContext->fs; in SimpleFileIO() local 92 req->data = ioContext; in SimpleFileIO() 96 uv_fs_read(context->loop, req, context->fsOpenReq.result, &iov, 1, index, context->cb); in SimpleFileIO() 105 uv_fs_write(context->loop, req, context->fsOpenReq.result, &iov, 1, index, context->cb); in SimpleFileIO() 121 void HdcTransferBase::OnFileClose(uv_fs_t *req) in OnFileClose() argument 124 uv_fs_req_cleanup(req); in OnFileClose() 125 CtxFile *context = (CtxFile *)req->data; in OnFileClose() 202 void HdcTransferBase::OnFileIO(uv_fs_t *req) in OnFileIO() argument 204 CtxFileIO *contextIO = reinterpret_cast<CtxFileIO *>(req->data); in OnFileIO() 209 uv_fs_req_cleanup(req); in OnFileIO() [all …]
|
| D | base.cpp | 119 uv_fs_t req; in LogToPath() 120 int fd = uv_fs_open(nullptr, &req, path, flags, S_IWUSR | S_IRUSR, nullptr); in LogToPath() 123 uv_strerror_r((int)req.result, buffer, BUF_SIZE_DEFAULT); in LogToPath() 124 uv_fs_req_cleanup(&req); in LogToPath() 130 uv_fs_req_cleanup(&req); in LogToPath() 131 uv_fs_write(nullptr, &req, fd, &wbf, 1, -1, nullptr); in LogToPath() 132 uv_fs_close(nullptr, &req, fd, nullptr); in LogToPath() 185 uv_fs_t req = {}; in ChmodLogFile() local 186 uv_fs_req_cleanup(&req); in ChmodLogFile() 187 int rc = uv_fs_chmod(nullptr, &req, path.c_str(), 0664, nullptr); in ChmodLogFile() [all …]
|
| /developtools/hdc/src/daemon/ |
| D | daemon_usb.cpp | 52 uv_fs_req_cleanup(&ctxRecv.req); in ~HdcDaemonUSB() 264 uv_fs_t req; in CloseBulkEp() member 273 uv_fs_t *req = &ctx->req; in CloseBulkEp() local 274 req->data = ctx; in CloseBulkEp() 279 uv_fs_close(loop, req, bulkFd, [](uv_fs_t *req) { in CloseBulkEp() argument 280 auto ctx = (CtxCloseBulkEp *)req->data; in CloseBulkEp() 287 uv_fs_req_cleanup(req); in CloseBulkEp() 386 void HdcDaemonUSB::UvWriteCallback(uv_write_t *req, int status) in UvWriteCallback() argument 395 UvData *uvData = reinterpret_cast<UvData *>(req->data); in UvWriteCallback() 400 delete req; in UvWriteCallback() [all …]
|
| /developtools/smartperf_host/ide/src/statistics/util/ |
| D | SpStatisticsHttpUtil.ts | 39 let req = new XMLHttpRequest(); 40 req.open( 47 req.send(null); 48 if (req.status == 200) { 49 let requestInfo = req.getResponseHeader('request_info');
|