Home
last modified time | relevance | path

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

12345

/developtools/profiler/host/smartperf/ide/src/trace/database/ui-worker/
DProcedureWorker.ts104 function match(type: string, req: RequestMessage) {
108 req.lazyRefresh = dataList[type].length > 20000;
110 renders[it].render(req, dataList[type], dataFilter[type], dataList2);
165 let req = new RequestMessage(); variable
166 req.canvas = canvasList[e.data.type];
167 req.context = contextList[e.data.type];
168 req.type = e.data.type as string;
169 req.params = e.data.params;
170 req.online = e.data.params.online;
171 req.buf = e.data.params.buf;
[all …]
DProcedureWorkerEnergyPower.ts180 export function drawLegend(req: any, isDark?: boolean) {
183 let text = req.context.measureText(textList[index]);
184 req.context.fillStyle = EnergyPowerStruct.getHistogramColor(textList[index]);
185 req.context.globalAlpha = 1;
186 let canvasEndX = req.context.canvas.clientWidth - EnergyPowerStruct.OFFSET_WIDTH;
189 req!.context.fillRect(canvasEndX - EnergyPowerStruct.powerItemNumber * 80, 12, 8, 8);
190 req.context.globalAlpha = 1;
191 req.context.fillStyle = textColor;
192 req.context.textBaseline = 'middle';
193req.context.fillText(textList[index], canvasEndX - EnergyPowerStruct.powerItemNumber * 80 + 10, 18…
[all …]
DProcedureWorkerNetworkAbility.ts21 req: {
40 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
42 req.context.beginPath();
45 NetworkAbilityMonitorStruct.draw(req.context, re, req.maxNetworkRate, row.isHover);
52 req.context.closePath();
53 let textMetrics = req.context.measureText(req.maxNetworkRateName);
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 …]
DProcedureWorkerEnergyAnomaly.ts31 req: {
49 req.appName,
50 req.useCache || !TraceRow.range!.refresh
52 req.context.beginPath();
56 drawLegend(req, isDark);
58 EnergyAnomalyStruct.draw(req.context, re);
65 req.context.fillStyle = ColorUtils.FUNC_COLOR[0];
66 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0];
67 req.context.closePath();
174 export function drawLegend(req: any, isDark?: boolean) {
[all …]
DProcedureWorkerCpuAbility.ts30 req: {
49 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
51 req.context.beginPath();
54 CpuAbilityMonitorStruct.draw(req.context, re, req.maxCpuUtilization, row.isHover);
61 req.context.closePath();
62 let textMetrics = req.context.measureText(req.maxCpuUtilizationName);
63 req.context.globalAlpha = 0.8;
64 req.context.fillStyle = '#f0f0f0';
65 req.context.fillRect(0, 5, textMetrics.width + 8, 18);
66 req.context.globalAlpha = 1;
[all …]
DProcedureWorkerEnergySystem.ts31 req: {
47 req.useCache || !TraceRow.range!.refresh
49 req.context.beginPath();
55 EnergySystemStruct.draw(req.context, re);
91 drawLegend(req, isDark);
92 req.context.closePath();
214 export function drawLegend(req: RequestMessage | any, isDark?: boolean) {
217 let text = req.context.measureText(textList[index]);
218 req.context.fillStyle = EnergySystemStruct.getColor(index);
219 let canvasEndX = req.context.canvas.clientWidth - EnergySystemStruct.OFFSET_WIDTH;
[all …]
DProcedureWorkerHiPerfCPU.ts32 renderMainThread(req: any, row: TraceRow<HiPerfCpuStruct>) {
35 let groupBy10MS = req.scale > 30_000_000;
37 row.dataList2 = HiPerfCpuStruct.groupBy10MS(list, req.intervalPerf, req.maxCpu);
47 req.useCache || (TraceRow.range?.refresh ?? false)
49 req.context.beginPath();
50 req.context.fillStyle = ColorUtils.FUNC_COLOR[0];
51 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0];
65 HiPerfCpuStruct.draw(req.context, path, re, groupBy10MS);
69 req.context.fill(path);
71 req.context.stroke(path);
[all …]
DProcedureWorkerEnergyState.ts31 req: {
49 req.useCache || !TraceRow.range!.refresh
51 req.context.beginPath();
55 EnergyStateStruct.draw(req.context, re, req.maxState, req.maxStateName);
62 if (req.maxStateName != 'enable' && req.maxStateName != 'disable' && req.maxStateName != '-1') {
63 let s = req.maxStateName;
64 let textMetrics = req.context.measureText(s);
65 req.context.globalAlpha = 1.0;
66 req.context.fillStyle = '#f0f0f0';
67 req.context.fillRect(0, 5, textMetrics.width + 8, 18);
[all …]
DProcedureWorkerDiskIoAbility.ts33 req: {
52 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
54 req.context.beginPath();
57 DiskAbilityMonitorStruct.draw(req.context, re, req.maxDiskRate, row.isHover);
64 req.context.closePath();
65 let textMetrics = req.context.measureText(req.maxDiskRateName);
66 req.context.globalAlpha = 0.8;
67 req.context.fillStyle = '#f0f0f0';
68 req.context.fillRect(0, 5, textMetrics.width + 8, 18);
69 req.context.globalAlpha = 1;
[all …]
DProduceWorkerSdkCounter.ts31 req: {
42 let maxCounter = req.maxValue;
43 let maxCounterName = req.maxName;
51 req.useCache || (TraceRow.range?.refresh ?? false)
53 req.context.beginPath();
60 CounterStruct.draw(req.context, re, maxCounter);
63 req.context.closePath();
64 let textMetrics = req.context.measureText(maxCounterName);
65 req.context.globalAlpha = 0.8;
66 req.context.fillStyle = '#f0f0f0';
[all …]
/developtools/smartperf_host/ide/src/trace/database/ui-worker/
DProcedureWorker.ts112 function match(type: string, req: RequestMessage) {
116 req.lazyRefresh = dataList[type].length > 20000;
118 renders[it].render(req, dataList[type], dataFilter[type], dataList2);
173 let req = new RequestMessage(); variable
174 req.canvas = canvasList[e.data.type];
175 req.context = contextList[e.data.type];
176 req.type = e.data.type as string;
177 req.params = e.data.params;
178 req.online = e.data.params.online;
179 req.buf = e.data.params.buf;
[all …]
DProcedureWorkerHiPerfCPU.ts32 renderMainThread(req: any, row: TraceRow<HiPerfCpuStruct>) {
35 let groupBy10MS = req.scale > 30_000_000;
37 row.dataList2 = HiPerfCpuStruct.groupBy10MS(list, req.intervalPerf, req.maxCpu);
47 req.useCache || (TraceRow.range?.refresh ?? false)
49 req.context.beginPath();
50 req.context.fillStyle = ColorUtils.FUNC_COLOR[0];
51 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0];
66 HiPerfCpuStruct.draw(req.context, normalPath, specPath, re, groupBy10MS);
70 req.context.fill(normalPath);
72 req.context.stroke(normalPath);
[all …]
DProcedureWorkerEnergyPower.ts180 export function drawLegend(req: any, isDark?: boolean) {
183 let text = req.context.measureText(textList[index]);
184 req.context.fillStyle = EnergyPowerStruct.getHistogramColor(textList[index]);
185 req.context.globalAlpha = 1;
186 let canvasEndX = req.context.canvas.clientWidth - EnergyPowerStruct.OFFSET_WIDTH;
189 req!.context.fillRect(canvasEndX - EnergyPowerStruct.powerItemNumber * 80, 12, 8, 8);
190 req.context.globalAlpha = 1;
191 req.context.fillStyle = textColor;
192 req.context.textBaseline = 'middle';
193req.context.fillText(textList[index], canvasEndX - EnergyPowerStruct.powerItemNumber * 80 + 10, 18…
[all …]
DProcedureWorkerNetworkAbility.ts21 req: {
40 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
42 req.context.beginPath();
45 … NetworkAbilityMonitorStruct.draw(req.context, re, req.maxNetworkRate, networkAbilityRow.isHover);
56 req.context.closePath();
57 let textMetrics = req.context.measureText(req.maxNetworkRateName);
58 req.context.globalAlpha = 0.8;
59 req.context.fillStyle = '#f0f0f0';
60 req.context.fillRect(0, 5, textMetrics.width + 8, 18);
61 req.context.globalAlpha = 1;
[all …]
DProcedureWorkerEnergyAnomaly.ts31 req: {
49 req.appName,
50 req.useCache || !TraceRow.range!.refresh
52 req.context.beginPath();
56 drawLegend(req, isDark);
58 EnergyAnomalyStruct.draw(req.context, re);
65 req.context.fillStyle = ColorUtils.FUNC_COLOR[0];
66 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0];
67 req.context.closePath();
174 export function drawLegend(req: any, isDark?: boolean) {
[all …]
DProcedureWorkerCpuAbility.ts30 req: {
49 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
52 req.context.beginPath();
54 CpuAbilityMonitorStruct.draw(req.context, re, req.maxCpuUtilization, cpuAbilityRow.isHover);
65 req.context.closePath();
66 let textMetrics = req.context.measureText(req.maxCpuUtilizationName);
67 req.context.globalAlpha = 0.8;
68 req.context.fillStyle = '#f0f0f0';
69 req.context.fillRect(0, 5, textMetrics.width + 8, 18);
70 req.context.globalAlpha = 1;
[all …]
DProcedureWorkerEnergySystem.ts31 req: {
47 req.useCache || !TraceRow.range!.refresh
49 req.context.beginPath();
55 EnergySystemStruct.draw(req.context, energySysStruct);
91 drawLegend(req, isDark);
92 req.context.closePath();
214 export function drawLegend(req: RequestMessage | any, isDark?: boolean) {
217 let text = req.context.measureText(textList[index]);
218 req.context.fillStyle = EnergySystemStruct.getColor(index);
219 let canvasEndX = req.context.canvas.clientWidth - EnergySystemStruct.OFFSET_WIDTH;
[all …]
DProcedureWorkerEnergyState.ts31 req: {
49 req.useCache || !TraceRow.range!.refresh
51 req.context.beginPath();
55 EnergyStateStruct.draw(req.context, re, req.maxState, req.maxStateName);
62 if (req.maxStateName != 'enable' && req.maxStateName != 'disable' && req.maxStateName != '-1') {
63 let s = req.maxStateName;
64 let textMetrics = req.context.measureText(s);
65 req.context.globalAlpha = 1.0;
66 req.context.fillStyle = '#f0f0f0';
67 req.context.fillRect(0, 5, textMetrics.width + 8, 18);
[all …]
DProcedureWorkerDiskIoAbility.ts33 req: {
52 useCache: req.useCache || !(TraceRow.range?.refresh ?? false),
54 req.context.beginPath();
57 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);
73 req.context.globalAlpha = 1;
[all …]
DProduceWorkerSdkCounter.ts31 req: {
42 let maxCounter = req.maxValue;
43 let maxCounterName = req.maxName;
51 req.useCache || (TraceRow.range?.refresh ?? false)
53 req.context.beginPath();
60 CounterStruct.draw(req.context, re, maxCounter);
65 req.context.closePath();
66 let textMetrics = req.context.measureText(maxCounterName);
67 req.context.globalAlpha = 0.8;
68 req.context.fillStyle = '#f0f0f0';
[all …]
/developtools/hdc/src/host/
Dhost_unity.cpp54 void HdcHostUnity::OnFileClose(uv_fs_t *req) in OnFileClose() argument
56 uv_fs_req_cleanup(req); in OnFileClose()
57 ContextUnity *context = reinterpret_cast<ContextUnity *>(req->data); in OnFileClose()
77 void HdcHostUnity::OnFileIO(uv_fs_t *req) in OnFileIO() argument
79 CtxUnityIO *contextIO = reinterpret_cast<CtxUnityIO *>(req->data); in OnFileIO()
83 uv_fs_req_cleanup(req); in OnFileIO()
86 if (req->result <= 0) { in OnFileIO()
87 if (req->result < 0) { in OnFileIO()
90 uv_strerror_r((int)req->result, buf, bufSize); in OnFileIO()
95 context->fileIOIndex += req->result; in OnFileIO()
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/database/logic-worker/
DProcedureLogicWorker.ts33 function match(req: any) {
34 if (req.type === 'clear') {
40 if (req.type && req.type.startsWith(it as string)) {
41 logicWorker[it].handle(req);
/developtools/hdc/src/common/
Dtransfer.cpp90 uv_fs_t *req = &ioContext->fs; in SimpleFileIO() local
93 req->data = ioContext; in SimpleFileIO()
97 uv_fs_read(context->loop, req, context->fsOpenReq.result, &iov, 1, index, context->cb); in SimpleFileIO()
106 uv_fs_write(context->loop, req, context->fsOpenReq.result, &iov, 1, index, context->cb); in SimpleFileIO()
122 void HdcTransferBase::OnFileClose(uv_fs_t *req) in OnFileClose() argument
125 uv_fs_req_cleanup(req); in OnFileClose()
126 CtxFile *context = (CtxFile *)req->data; in OnFileClose()
203 void HdcTransferBase::OnFileIO(uv_fs_t *req) in OnFileIO() argument
205 CtxFileIO *contextIO = reinterpret_cast<CtxFileIO *>(req->data); in OnFileIO()
210 uv_fs_req_cleanup(req); in OnFileIO()
[all …]
Dbase.cpp122 uv_fs_t req; in LogToPath()
123 int fd = uv_fs_open(nullptr, &req, path, flags, S_IWUSR | S_IRUSR, nullptr); in LogToPath()
126 uv_strerror_r((int)req.result, buffer, BUF_SIZE_DEFAULT); in LogToPath()
127 uv_fs_req_cleanup(&req); in LogToPath()
133 uv_fs_req_cleanup(&req); in LogToPath()
134 uv_fs_write(nullptr, &req, fd, &wbf, 1, 0, nullptr); in LogToPath()
135 uv_fs_close(nullptr, &req, fd, nullptr); in LogToPath()
188 uv_fs_t req = {}; in ChmodLogFile() local
189 uv_fs_req_cleanup(&req); in ChmodLogFile()
190 int rc = uv_fs_chmod(nullptr, &req, path.c_str(), 0664, nullptr); in ChmodLogFile()
[all …]
/developtools/smartperf_host/ide/src/trace/database/logic-worker/
DProcedureLogicWorker.ts35 function match(req: any) {
36 if (req.type === 'clear') {
42 if (req.type && req.type.startsWith(it as string)) {
43 logicWorker[it].handle(req);

12345