Home
last modified time | relevance | path

Searched refs:req (Results 1 – 25 of 87) sorted by relevance

1234

/developtools/smartperf_host/ide/src/trace/database/ui-worker/
DProcedureWorker.ts132 function match(type: string, req: RequestMessage): void {
138 req.lazyRefresh = dataList[type].length > 20000;
141 renders[it].render(req, dataList[type], dataFilter[type], dataList2);
193 let req = new RequestMessage(); variable
194 setReq(req, e);
196 match(req.type!, req);
219 function setReq(req: RequestMessage, e: unknown): void {
221 req.canvas = canvasList[e.data.type];
223 req.context = contextList[e.data.type];
225 req.type = e.data.type as string;
[all …]
DProcedureWorkerEnergyAnomaly.ts29 req: {
47 req.appName,
48 req.useCache || !TraceRow.range!.refresh
56 drawLoadingFrame(req.context, row.dataListCache, row);
57 req.context.beginPath();
61 drawLegend(req, isDark);
63 EnergyAnomalyStruct.draw(req.context, re);
72 req.context.fillStyle = ColorUtils.FUNC_COLOR[0];
73 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0];
74 req.context.closePath();
[all …]
DProcedureWorkerEnergyPower.ts78 req: { useCache: boolean; context: CanvasRenderingContext2D; type: string; appName: string },
83 let text = req.context.measureText(textList[index]);
84 req.context.fillStyle = EnergyPowerStruct.getHistogramColor(textList[index]);
85 req.context.globalAlpha = 1;
86 let canvasEndX = req.context.canvas.clientWidth - EnergyPowerStruct.OFFSET_WIDTH;
89 req!.context.fillRect(canvasEndX - EnergyPowerStruct.powerItemNumber * 80, 12, 8, 8);
90 req.context.globalAlpha = 1;
91 req.context.fillStyle = textColor;
92 req.context.textBaseline = 'middle';
93req.context.fillText(textList[index], canvasEndX - EnergyPowerStruct.powerItemNumber * 80 + 10, 18…
[all …]
DProcedureWorkerNetworkAbility.ts28 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 …]
DProcedureWorkerCpuAbility.ts31 req: {
50 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
53 drawLoadingFrame(req.context, cpuAbilityRow.dataListCache, cpuAbilityRow);
54 req.context.beginPath();
56 CpuAbilityMonitorStruct.draw(req.context, re, req.maxCpuUtilization, cpuAbilityRow.isHover);
69 req.context.closePath();
70 let textMetrics = req.context.measureText(req.maxCpuUtilizationName);
71 req.context.globalAlpha = 0.8;
72 req.context.fillStyle = '#f0f0f0';
73 req.context.fillRect(0, 5, textMetrics.width + 8, 18);
[all …]
DProcedureWorkerEnergySystem.ts29 req: {
45 req.useCache || !TraceRow.range!.refresh
47 drawLoadingFrame(req.context, row.dataListCache, row);
48 drawProcedureWorkerEnergy(req, systemFilter, row);
53 req: {
61 req.context.beginPath();
66 EnergySystemStruct.draw(req.context, energySysStruct);
115 drawLegend(req, isDark);
116 req.context.closePath();
120 req: {
[all …]
DProcedureWorkerEnergyState.ts21 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);
55 …if (req.maxStateName !== 'enable' && req.maxStateName !== 'disable' && req.maxStateName !== '-1') {
56 let s = req.maxStateName;
57 let textMetrics = req.context.measureText(s);
58 req.context.globalAlpha = 1.0;
59 req.context.fillStyle = '#f0f0f0';
[all …]
DProcedureWorkerDiskIoAbility.ts30 req: {
49 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
51 drawLoadingFrame(req.context, diskIoAbilityRow.dataListCache, diskIoAbilityRow);
52 req.context.beginPath();
55 DiskAbilityMonitorStruct.draw(req.context, re, req.maxDiskRate, diskIoAbilityRow.isHover);
68 req.context.closePath();
69 let textMetrics = req.context.measureText(req.maxDiskRateName);
70 req.context.globalAlpha = 0.8;
71 req.context.fillStyle = '#f0f0f0';
72 req.context.fillRect(0, 5, textMetrics.width + 8, 18);
[all …]
DProcedureWorkerMemoryAbility.ts30 req: {
49 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
51 drawLoadingFrame(req.context, memoryAbilityRow.dataListCache, memoryAbilityRow);
52 req.context.beginPath();
55 MemoryAbilityMonitorStruct.draw(req.context, re, req.maxMemoryByte, memoryAbilityRow.isHover);
69 req.context.closePath();
70 let textMetrics = req.context.measureText(req.maxMemoryByteName);
71 req.context.globalAlpha = 0.8;
72 req.context.fillStyle = '#f0f0f0';
73 req.context.fillRect(0, 5, textMetrics.width + 8, 18);
[all …]
DProduceWorkerSdkCounter.ts21 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 …]
DProcedureWorkerFPS.ts21 req: {
37 req.useCache || !TraceRow.range!.refresh
39 req.context.beginPath();
42 FpsStruct.draw(req.context, re);
51 req.context.closePath();
53 let textMetrics = req.context.measureText(maxFps);
54 req.context.globalAlpha = 0.8;
55 req.context.fillStyle = '#f0f0f0';
56 req.context.fillRect(0, 5, textMetrics.width + 8, 18);
57 req.context.globalAlpha = 1;
[all …]
DProcedureWorkerProcess.ts22 renderMainThread(req: unknown, row: TraceRow<ProcessStruct>): void {
36 req.useCache || !TraceRow.range!.refresh
39 drawLoadingFrame(req.context, filter, row, true);
41 req.context.beginPath();
46 req.context.fillStyle = ColorUtils.colorForTid(req.pid || 0);
49 ProcessStruct.draw(req.context, path, re, miniHeight);
52 req.context.fill(path);
54 req.context.closePath();
DProcedureWorkerLTPO.ts21 req: {
42 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
44 req.ltpoContext.globalAlpha = 0.6;
47 drawLoadingFrame(req.ltpoContext, filter, ltpoRow);
65 req.ltpoContext.beginPath();
66 LtpoStruct.draw(req.ltpoContext, re);
67 req.ltpoContext.closePath();
DProcedureWorkerHitchTime.ts21 req: {
44 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
46 req.hitchTimeContext.globalAlpha = 0.6;
49 drawLoadingFrame(req.hitchTimeContext, filter, hitchTimeRow);
67 req.hitchTimeContext.beginPath();
68 HitchTimeStruct.draw(req.hitchTimeContext, re);
69 req.hitchTimeContext.closePath();
DProcedureWorkerVirtualMemory.ts22 req: {
36 req.useCache || (TraceRow.range?.refresh ?? false)
38 drawLoadingFrame(req.context, row.dataListCache, row);
39 req.context.beginPath();
46 VirtualMemoryStruct.draw(req.context, re);
51 req.context.closePath();
DProcedureWorkerFrameSpacing.ts32 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 …]
DProcedureWorkerMem.ts22 req: {
38 req.useCache || !TraceRow.range!.refresh
40 drawLoadingFrame(req.context, memFilter, row);
41 req.context.beginPath();
44 ProcessMemStruct.draw(req.context, re);
55 req.context.closePath();
DProcedureWorkerHiSysEvent.ts22 req: {
46 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
56 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
59 drawLoadingFrame(req.context, row.dataListCache, row);
60 req.context.beginPath();
63 HiSysEventStruct.draw(req.context, re);
68 req.context.closePath();
/developtools/smartperf_host/ide/src/trace/database/logic-worker/
DProcedureLogicWorker.ts35 function match(req: { id: string; type: string; params: { dataDict: Map<number, string> } }): void {
36 if (req.type === 'clear') {
42 if (req.type === 'cache-data-dict') {
43 DataCache.getInstance().dataDict = req.params.dataDict;
45 id: req.id,
46 action: req.type,
52 if (req.type && req.type.startsWith(it as string)) {
54 logicWorker[it].handle(req);
/developtools/hdc/src/host/
Dhost_unity.cpp57 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/
Dtransfer.cpp89 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 …]
Dbase.cpp154 uv_fs_t req; in LogToPath()
155 int fd = uv_fs_open(nullptr, &req, path, flags, S_IWUSR | S_IRUSR, nullptr); in LogToPath()
158 uv_strerror_r((int)req.result, buffer, BUF_SIZE_DEFAULT); in LogToPath()
159 uv_fs_req_cleanup(&req); in LogToPath()
165 uv_fs_req_cleanup(&req); in LogToPath()
166 uv_fs_write(nullptr, &req, fd, &wbf, 1, -1, nullptr); in LogToPath()
167 uv_fs_close(nullptr, &req, fd, nullptr); in LogToPath()
279 uv_fs_t req = {}; in ChmodLogFile() local
280 uv_fs_req_cleanup(&req); in ChmodLogFile()
281 int rc = uv_fs_chmod(nullptr, &req, path.c_str(), 0664, nullptr); in ChmodLogFile()
[all …]
/developtools/smartperf_host/ide/src/statistics/util/
DSpStatisticsHttpUtil.ts39 let req = new XMLHttpRequest();
40 req.onreadystatechange = (): void => {
41 if (req.readyState === 4 && req.status === 200) {
42 let requestInfo = req.getResponseHeader('request_info');
48 req.open(
55 req.send(null);
/developtools/hdc/src/daemon/
Ddaemon_usb.cpp52 uv_fs_req_cleanup(&ctxRecv.req); in ~HdcDaemonUSB()
266 uv_fs_t req; in CloseBulkEp() member
275 uv_fs_t *req = &ctx->req; in CloseBulkEp() local
276 req->data = ctx; in CloseBulkEp()
281 uv_fs_close(loop, req, bulkFd, [](uv_fs_t *req) { in CloseBulkEp() argument
282 auto ctx = (CtxCloseBulkEp *)req->data; in CloseBulkEp()
289 uv_fs_req_cleanup(req); in CloseBulkEp()
388 void HdcDaemonUSB::UvWriteCallback(uv_write_t *req, int status) in UvWriteCallback() argument
397 UvData *uvData = reinterpret_cast<UvData *>(req->data); in UvWriteCallback()
402 delete req; in UvWriteCallback()
[all …]
/developtools/smartperf_host/ide/src/trace/database/ui-worker/hiperf/
DProcedureWorkerHiPerfThread2.ts21 renderMainThread(req: unknown, row: TraceRow<HiPerfThreadStruct>): void {
24 const ctx = req.context as CanvasRenderingContext2D;
26 let groupBy10MS = req.scale > 30_000_000;
62 …render(req: RequestMessage, list: Array<unknown>, filter: Array<unknown>, dataList2: Array<unknown…

1234