Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 267) sorted by relevance

1234567891011

/developtools/smartperf_host/trace_streamer/test/unittest/
Dtask_pool_filter_test.cpp51 uint32_t res = stream_.streamFilters_->taskPoolFilter_->CheckTheSameTask(executeId, index); variable
52 EXPECT_EQ(res, INVALID_INT32);
71 auto res = stream_.traceDataCache_->GetTaskPoolData()->allocationItids_[0]; variable
72 EXPECT_EQ(res, 1);
73 res = stream_.traceDataCache_->GetTaskPoolData()->executeItids_[0];
74 EXPECT_EQ(res, INVALID_INT32);
75 res = stream_.traceDataCache_->GetTaskPoolData()->returnItids_[0];
76 EXPECT_EQ(res, INVALID_INT32);
77 res = stream_.traceDataCache_->GetTaskPoolData()->executeIds_[0];
78 EXPECT_EQ(res, 9);
[all …]
Dframe_filter_test.cpp62 auto res = streamFilters_.frameFilter_->EndVsyncEvent(END_TS, ITID); variable
63 EXPECT_FALSE(res);
95 bool res = streamFilters_.frameFilter_->BeginRSTransactionData(FRAME_TS, ITID, FRAME_NUM); variable
96 EXPECT_TRUE(res);
98 res = streamFilters_.frameFilter_->EndVsyncEvent(END_TS, ITID);
99 EXPECT_TRUE(res);
130 auto res = streamFilters_.frameFilter_->MarkRSOnvsyncEvent(ONVSYNC_TS, ITID); variable
131 EXPECT_TRUE(res);
133 res = streamFilters_.frameFilter_->EndVsyncEvent(END_TS, ITID);
134 EXPECT_TRUE(res);
[all …]
Drpc_server_test.cpp37 void res(const std::string result, int32_t finish) in res() function
55 auto ret = rpcServer.ParseData((const uint8_t*)PARSERDATA.c_str(), PARSERDATA.length(), res);
56 EXPECT_TRUE(res);
58 ret = rpcServer.ParseDataOver((const uint8_t*)PARSERDATA.c_str(), PARSERDATA.length(), res);
59 EXPECT_TRUE(res);
61 ret = rpcServer.SqlQuery((const uint8_t*)SQLQUERY.c_str(), SQLQUERY.length(), res);
62 EXPECT_TRUE(res);
78 auto ret = rpcServer.ParseData((const uint8_t*)PARSERDATA.c_str(), PARSERDATA.length(), res);
79 EXPECT_TRUE(res);
81 ret = rpcServer.ParseDataOver((const uint8_t*)PARSERDATA.c_str(), PARSERDATA.length(), res);
[all …]
Danimation_filter_test.cpp65 …auto res = stream_.streamFilters_->animationFilter_->BeginDynamicFrameEvent(point, CALLSTACK_SLICE… variable
66 EXPECT_FALSE(res);
99 …auto res = stream_.streamFilters_->animationFilter_->BeginDynamicFrameEvent(point, CALLSTACK_SLICE… variable
100 EXPECT_FALSE(res);
116 auto res = stream_.streamFilters_->animationFilter_->BeginDynamicFrameEvent(point, curStackRow); variable
117 EXPECT_FALSE(res);
121 res = stream_.streamFilters_->animationFilter_->BeginDynamicFrameEvent(point, curStackRow);
122 EXPECT_TRUE(res);
149 auto res = stream_.streamFilters_->animationFilter_->UpdateDeviceInfoEvent(point, line); variable
150 EXPECT_FALSE(res);
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/trace/base/
DUtils.ts106 let res = '';
108 res += Math.floor(currentTime / hour1) + 'h ';
112 res += Math.floor(currentTime / minute1) + 'm ';
116 res += Math.floor(currentTime / second1) + 's ';
120 res += Math.floor(currentTime / millisecond1) + 'ms ';
124 res += Math.floor(currentTime / microsecond1) + 'μs ';
128 res += currentTime + 'ns ';
130 if (res == '') {
131 res = ns + '';
133 return res;
[all …]
/developtools/integration_verification/tools/fotff/res/
Dres.go16 package res package
42 var res Resources var
45 utils.ParseFromConfigFile("resources", &res)
46 snList := strings.Split(res.DeviceSnList, ",")
47 addrList := strings.Split(res.AddrList, ",")
48 res.devicePool = make(chan string, len(snList))
50 res.devicePool <- sn
52 res.serverPool = make(chan string, len(addrList))
54 res.serverPool <- addr
66 res.devicePool = make(chan string, len(snList))
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/base/
DUtils.ts106 let res = '';
108 res += Math.floor(currentTime / hour1) + 'h ';
112 res += Math.floor(currentTime / minute1) + 'm ';
116 res += Math.floor(currentTime / second1) + 's ';
120 res += Math.floor(currentTime / millisecond1) + 'ms ';
124 res += Math.floor(currentTime / microsecond1) + 'μs ';
128 res += currentTime + 'ns ';
130 if (res == '') {
131 res = ns + '';
133 return res;
[all …]
/developtools/hdc/scripts/
Dhdc_test.py139 def command_callback(cmd, head, need_del, res=""): argument
143 assert "FileTransfer finish" in res
147 assert "FileTransfer finish" in res
150 check_install(head, res)
168 res = run_command_stdout("{}{}{}{}{}".format("shell \"[ ", file_type, " ", remote_file,
170 assert 'yes' in res
178 print("check_file_send success ", res)
190 res = run_command_stdout("{}{}{}".format("attrib ", local_file, ""))
193 assert '-' not in res
198 print("check_file_recv success ", res)
[all …]
/developtools/ace_js2bundle/ace-loader/plugin/templater/
Ddata.js34 const res = []
42 getValue(next, start, v, res)
43 parseValue(match, res)
46 getValue(next, v.length, v, res)
47 return res
50 function getValue(begin, end, v, res) { argument
52 res.push({
58 function parseValue(match, res) { argument
61 res.push({
/developtools/smartperf_host/trace_streamer/src/base/
Dstring_help.cpp28 bool StartWith(const std::string& str, const std::string& res) in StartWith() argument
30 if (res.size() > str.size()) { in StartWith()
33 return str.compare(0, res.length(), res) == 0; in StartWith()
36 bool EndWith(const std::string& str, const std::string& res) in EndWith() argument
38 if (res.size() > str.size()) { in EndWith()
41 return str.compare(str.size() - res.size(), res.size(), res) == 0; in EndWith()
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Delf_parser_test.cpp58 std::string res {buf}; in GetNextLine() local
59 if (res.back() == '\n') { in GetNextLine()
60 res = res.substr(0, res.length() - 1); in GetNextLine()
62 return res; in GetNextLine()
505 int64_t res {-1}; in GetNum() local
509 return res; in GetNum()
514 res = std::stoll(numStr); in GetNum()
516 return res; in GetNum()
521 int64_t res {-1}; in GetValue() local
525 return res; in GetValue()
[all …]
/developtools/hiperf/test/unittest/common/native/
Delf_parser_test.cpp59 std::string res {buf}; in GetNextLine() local
60 if (res.back() == '\n') { in GetNextLine()
61 res = res.substr(0, res.length() - 1); in GetNextLine()
63 return res; in GetNextLine()
506 int64_t res {-1}; in GetNum() local
510 return res; in GetNum()
515 res = std::stoll(numStr); in GetNum()
517 return res; in GetNum()
522 int64_t res {-1}; in GetValue() local
526 return res; in GetValue()
[all …]
Dtracked_command_test.cpp57 bool res = trackedCMD->StartCommand(); variable
58 EXPECT_TRUE(res);
62 res = trackedCMD->WaitCommand(wstatus);
64 if (res) {
81 bool res = trackedCMD->StartCommand(); variable
82 EXPECT_FALSE(res);
86 res = trackedCMD->WaitCommand(wstatus);
88 if (res) {
/developtools/profiler/host/smartperf/ide/src/trace/database/logic-worker/
DProcedureLogicWorkerCommon.ts392 let res = '';
394 res += (currentBytes / gb).toFixed(2) + ' Gb';
396 res += (currentBytes / mb).toFixed(2) + ' Mb';
398 res += (currentBytes / kb1).toFixed(2) + ' Kb';
400 res += Math.round(currentBytes) + ' byte';
402 return res;
412 let res = '';
414 res += Math.floor(currentNs / hour1) + 'h ';
418 res += Math.floor(currentNs / minute1) + 'm ';
422 res += Math.floor(currentNs / second1) + 's ';
[all …]
/developtools/smartperf_host/ide/src/command/
DCmd.ts89 }).then((res) => res.arrayBuffer());
176 let res = await fetch(uri, { method: 'POST' });
177 let result = res.ok ? await res.text() : '';
181 static convertOutProcessList(res: string): string[] {
183 if (res) {
184 let lineValues: string[] = res.replace(/\r\n/g, '\r').replace(/\n/g, '\r').split(/\r/);
203 Cmd.execHdcCmd(cmd, (res: string) => {
204 resolve(Cmd.convertOutProcessList(res));
209 … HdcDeviceManager.shellResultAsString(CmdConstant.CMD_GET_DEBUG_PROCESS, false).then((res) => {
210 resolve(Cmd.convertOutProcessList(res));
[all …]
/developtools/profiler/host/smartperf/ide/src/command/
DCmd.ts89 }).then((res) => res.arrayBuffer());
176 let res = await fetch(uri, { method: 'POST' });
177 let result = res.ok ? await res.text() : '';
181 static convertOutProcessList(res: string): string[] {
183 if (res) {
184 let lineValues: string[] = res.replace(/\r\n/g, '\r').replace(/\n/g, '\r').split(/\r/);
203 Cmd.execHdcCmd(cmd, (res: string) => {
204 resolve(Cmd.convertOutProcessList(res));
209 … HdcDeviceManager.shellResultAsString(CmdConstant.CMD_GET_DEBUG_PROCESS, false).then((res) => {
210 resolve(Cmd.convertOutProcessList(res));
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/schedulingAnalysis/utils/
DUtils.ts51 let res = '';
54 res += Number(currentNs.slice(0, currentNs.length - 1)) * hour1;
56 res += Number(currentNs.slice(0, currentNs.length - 1)) * minute1;
58 res += Number(currentNs.slice(0, currentNs.length - 1)) * second1;
60 res += Number(currentNs.slice(0, currentNs.length - 2)) * millisecond1;
62 res += Number(currentNs.slice(0, currentNs.length - 2)) * microsecond1;
64 res += Number(currentNs);
66 return res;
/developtools/smartperf_host/ide/src/trace/component/schedulingAnalysis/utils/
DUtils.ts51 let res = '';
54 res += Number(currentNs.slice(0, currentNs.length - 1)) * hour1;
56 res += Number(currentNs.slice(0, currentNs.length - 1)) * minute1;
58 res += Number(currentNs.slice(0, currentNs.length - 1)) * second1;
60 res += Number(currentNs.slice(0, currentNs.length - 2)) * millisecond1;
62 res += Number(currentNs.slice(0, currentNs.length - 2)) * microsecond1;
64 res += Number(currentNs);
66 return res;
/developtools/profiler/hiebpf/include/
Dringbuffer.h105 int res {0}; in FreeSize()
106 res = head_ - tail_; in FreeSize()
107 if (res <= 0) { in FreeSize()
108 res += bufSize_; in FreeSize()
110 return static_cast<std::size_t>(res); in FreeSize()
114 int res {0};
115 res = tail_ - head_;
116 if (res < 0) {
117 res += bufSize_;
119 return static_cast<std::size_t>(res);
/developtools/profiler/host/smartperf/ide/src/trace/component/schedulingAnalysis/
DTop20FrequencyThread.ts146 … this.queryLogicWorker('scheduling-Thread Freq', 'query Thread Top 20 Frequency Time:', (res) => {
150 res === undefined ||
151 res.length === 0;
152 (res as any[]).map((it: any, index: number) => {
155 this.frequencyThreadData = res;
162 this.frequencyThreadTbl!.recycleDataSource = res;
167 data: this.getPieChartData(res),
201 getPieChartData(res: any[]) {
202 if (res.length > 20) {
211 for (let i = 0; i < res.length; i++) {
[all …]
/developtools/smartperf_host/trace_streamer/sdk/dubai_sdk/trace_data/
Dtrace_data_db.cpp284 std::string res = "ok\r\n"; in SearchDatabase() local
287 resultCallBack(res, SEND_FINISH, 0); in SearchDatabase()
290 res += "{\"columns\":["; in SearchDatabase()
292 res += "\""; in SearchDatabase()
293 res += sqlite3_column_name(stmt, i); in SearchDatabase()
294 res += "\","; in SearchDatabase()
296 res.pop_back(); // remove the last "," in SearchDatabase()
297 res += "],\"values\":["; in SearchDatabase()
305 res += row + ","; in SearchDatabase()
306 if (res.size() >= ONCE_MAX_MB) { in SearchDatabase()
[all …]
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/trace_data/
Dtrace_data_db.cpp284 std::string res = "ok\r\n"; in SearchDatabase() local
287 resultCallBack(res, SEND_FINISH, 0); in SearchDatabase()
290 res += "{\"columns\":["; in SearchDatabase()
292 res += "\""; in SearchDatabase()
293 res += sqlite3_column_name(stmt, i); in SearchDatabase()
294 res += "\","; in SearchDatabase()
296 res.pop_back(); // remove the last "," in SearchDatabase()
297 res += "],\"values\":["; in SearchDatabase()
305 res += row + ","; in SearchDatabase()
306 if (res.size() >= ONCE_MAX_MB) { in SearchDatabase()
[all …]
/developtools/smartperf_host/trace_streamer/src/proto_reader/include/
Ddata_area.h43 auto res = static_cast<ProtoWireType>(type_); in Type() local
44 return res; in Type()
84 float res; in ToFloat() local
86 (void)memcpy_s(&res, sizeof(res), &value32, sizeof(value32)); in ToFloat()
87 return res; in ToFloat()
92 double res; in ToDouble() local
93 (void)memcpy_s(&res, sizeof(res), &intValue_, sizeof(intValue_)); in ToDouble()
94 return res; in ToDouble()
/developtools/profiler/host/smartperf/trace_streamer/src/proto_reader/include/
Ddata_area.h43 auto res = static_cast<ProtoWireType>(type_); in Type() local
44 return res; in Type()
84 float res; in ToFloat() local
86 (void*)memcpy_s(&res, sizeof(res), &value32, sizeof(value32)); in ToFloat()
87 return res; in ToFloat()
92 double res; in ToDouble() local
93 (void*)memcpy_s(&res, sizeof(res), &intValue_, sizeof(intValue_)); in ToDouble()
94 return res; in ToDouble()
/developtools/smartperf_host/ide/src/trace/component/schedulingAnalysis/
DTop20FrequencyThread.ts147 … this.queryLogicWorker('scheduling-Thread Freq', 'query Thread Top 20 Frequency Time:', (res) => {
151 res === undefined ||
152 res.length === 0;
153 (res as any[]).map((it: any, index: number) => {
156 this.frequencyThreadData = res;
163 this.frequencyThreadTbl!.recycleDataSource = res;
168 data: this.getPieChartData(res),
203 getPieChartData(res: any[]) {
204 if (res.length > 20) {
213 for (let i = 0; i < res.length; i++) {
[all …]

1234567891011