| /developtools/hdc/hdc_rust/src/host/ |
| D | unittest.rs | 27 .map(|s| s.to_string()) in if_parse_cmd_param_works() 34 .map(|s| s.to_string()) in if_parse_cmd_param_works() 47 .map(|s| s.to_string()) in if_parse_opt_cmd_works() 50 options: vec!["-l5".to_string()], in if_parse_opt_cmd_works() 63 .map(|s| s.to_string()) in if_parse_opt_cmd_param_works() 66 options: vec!["-l5".to_string()], in if_parse_opt_cmd_param_works() 70 .map(|s| s.to_string()) in if_parse_opt_cmd_param_works() 81 let opts = "-l5 -t 123456".split(" ").map(|s| s.to_string()).collect(); in if_extract_opt_lt_works() 85 connect_key: "123456".to_string(), in if_extract_opt_lt_works() 98 .map(|s| s.to_string()) in if_extract_opt_sm_works() [all …]
|
| D | auth.rs | 40 banner: HANDSHAKE_MESSAGE.to_string(), in start_handshake_with_daemon() 55 version: "unknown".to_string(), in start_handshake_with_daemon() 57 dev_name: "unknown".to_string(), in start_handshake_with_daemon() 58 emg_msg: "".to_string(), in start_handshake_with_daemon() 59 daemon_auth_status: DAEOMN_UNAUTHORIZED.to_string(), in start_handshake_with_daemon() 66 let mut devname = "".to_string(); in handshake_deal_daemon_auth_result() 67 let mut auth_result = "".to_string(); in handshake_deal_daemon_auth_result() 68 let mut emg_msg = "".to_string(); in handshake_deal_daemon_auth_result() 82 Some(devname) => devname.to_string(), in handshake_deal_daemon_auth_result() 83 _ => "".to_string(), in handshake_deal_daemon_auth_result() [all …]
|
| D | logger.rs | 69 .join(config::LOG_FILE_NAME.to_string() + config::LOG_TAIL_NAME); in init() 97 .join(config::LOG_FILE_NAME.to_string() + config::LOG_TAIL_NAME); in dump_log_file() 99 .to_string() in dump_log_file() 103 .join(file_type.to_string() + &ts[..19] + config::LOG_TAIL_NAME) in dump_log_file() 105 Path::new(&std::env::temp_dir()).join(file_type.to_string() + config::LOG_TAIL_NAME) in dump_log_file() 117 return "".to_string(); in get_running_mode() 120 "server".to_string() in get_running_mode() 122 "client".to_string() in get_running_mode() 134 let ts = humantime::format_rfc3339_millis(SystemTime::now()).to_string(); in log() 135 let level = &record.level().to_string()[..1]; in log()
|
| D | translate.rs | 16 " OpenHarmony device connector(HDC) ... \n".to_string() in usage() 77 let mut s = " OpenHarmony device connector(HDC) ... \n".to_string() in verbose()
|
| /developtools/hdc/hdc_rust/src/serializer/ |
| D | unittest.rs | 26 banner: "test_banner".to_string(), in if_session_hand_shake_works() 29 connect_key: "test_connect_key".to_string(), in if_session_hand_shake_works() 30 buf: "test_buf".to_string(), in if_session_hand_shake_works() 31 version: "test_version".to_string(), in if_session_hand_shake_works() 67 options: "options".to_string(), in if_transfer_config_works() 68 path: "path".to_string(), in if_transfer_config_works() 69 optional_name: "optional_name".to_string(), in if_transfer_config_works() 73 function_name: "function_name".to_string(), in if_transfer_config_works() 74 client_cwd: "client_cwd\\client_cwd".to_string(), in if_transfer_config_works() 75 reserve1: "reserve1".to_string(), in if_transfer_config_works() [all …]
|
| /developtools/profiler/hiebpf/src/ |
| D | hhlog.cpp | 102 ss << std::to_string(tmPtr->tm_year + yearStart) << "."; in GetLogFileName() 103 ss << std::to_string(tmPtr->tm_mon + monthStart) << "."; in GetLogFileName() 104 ss << std::to_string(tmPtr->tm_mday) << "_"; in GetLogFileName() 105 ss << std::to_string(tmPtr->tm_hour) << "."; in GetLogFileName() 106 ss << std::to_string(tmPtr->tm_min) << "."; in GetLogFileName() 107 ss << std::to_string(tmPtr->tm_sec) << ".hhlog"; in GetLogFileName() 123 ss << std::to_string(tmPtr->tm_year + yearStart) << "-"; in GetFormatTime() 124 ss << std::to_string(tmPtr->tm_mon + monthStart) << "-"; in GetFormatTime() 125 ss << std::to_string(tmPtr->tm_mday) << " "; in GetFormatTime() 126 ss << std::to_string(tmPtr->tm_hour) << ":"; in GetFormatTime() [all …]
|
| D | libbpf_logger.cpp | 98 ss << std::to_string(tmPtr->tm_year + yearStart) << "."; in GetLogFileName() 99 ss << std::to_string(tmPtr->tm_mon + monthStart) << "."; in GetLogFileName() 100 ss << std::to_string(tmPtr->tm_mday) << "_"; in GetLogFileName() 101 ss << std::to_string(tmPtr->tm_hour) << "."; in GetLogFileName() 102 ss << std::to_string(tmPtr->tm_min) << "."; in GetLogFileName() 103 ss << std::to_string(tmPtr->tm_sec) << ".libbpf.log"; in GetLogFileName()
|
| D | bpf_log_reader.cpp | 75 ss << std::to_string(tmPtr->tm_year + yearStart) << "."; in GetLogFileName() 76 ss << std::to_string(tmPtr->tm_mon + monthStart) << "."; in GetLogFileName() 77 ss << std::to_string(tmPtr->tm_mday) << "_"; in GetLogFileName() 78 ss << std::to_string(tmPtr->tm_hour) << "."; in GetLogFileName() 79 ss << std::to_string(tmPtr->tm_min) << "."; in GetLogFileName() 80 ss << std::to_string(tmPtr->tm_sec) << ".bpf.log"; in GetLogFileName()
|
| /developtools/hdc/hdc_rust/src/daemon_lib/ |
| D | auth.rs | 147 banner: HANDSHAKE_MESSAGE.to_string(), in handshake_init() 149 connect_key: "".to_string(), in handshake_init() 166 banner: HANDSHAKE_MESSAGE.to_string(), in make_sign_message() 168 connect_key: "".to_string(), in make_sign_message() 181 let mut handshake_msg = "".to_string(); in make_bypass_message() 193 banner: HANDSHAKE_MESSAGE.to_string(), in make_bypass_message() 195 connect_key: "".to_string(), in make_bypass_message() 229 let mut handshake_msg = "".to_string(); in make_emg_message() 237 banner: HANDSHAKE_MESSAGE.to_string(), in make_emg_message() 239 connect_key: "".to_string(), in make_emg_message() [all …]
|
| /developtools/smartperf_host/smartperf_device/device_command/collector/src/ |
| D | CPU.cpp | 68 std::string cpuFreqStr = std::to_string(cpuFreqInfo[i].curFreq); in GetCpuFreqItemData() 69 std::string cpuId = std::to_string(cpuFreqInfo[i].cpuId); in GetCpuFreqItemData() 83 std::string userUsageStr = std::to_string(workLoads[i].userUsage * oneHundred); in GetCpuUsageItemData() 84 std::string niceUsageStr = std::to_string(workLoads[i].niceUsage * oneHundred); in GetCpuUsageItemData() 85 std::string systemUsageStr = std::to_string(workLoads[i].systemUsage * oneHundred); in GetCpuUsageItemData() 86 std::string idleUsageStr = std::to_string(workLoads[i].idleUsage * oneHundred); in GetCpuUsageItemData() 87 std::string ioWaitUsageStr = std::to_string(workLoads[i].ioWaitUsage * oneHundred); in GetCpuUsageItemData() 88 std::string irqUsageStr = std::to_string(workLoads[i].irqUsage * oneHundred); in GetCpuUsageItemData() 89 std::string softIrqUsageStr = std::to_string(workLoads[i].softIrqUsage * oneHundred); in GetCpuUsageItemData() 90 … std::string totalUsageStr = std::to_string((workLoads[i].userUsage + workLoads[i].niceUsage + in GetCpuUsageItemData() [all …]
|
| D | GpuCounterCallback.cpp | 129 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 131 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 133 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 135 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 137 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 139 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 141 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 158 std::to_string(realtimeGpuPerfInfoData.gpuLoadPercentage) + "_"); in SplitSocketDataPercent() 160 std::to_string(realtimeGpuPerfInfoData.vertexLoadPercentage) + "_"); in SplitSocketDataPercent() 162 std::to_string(realtimeGpuPerfInfoData.fragmentLoadPercentage) + "_"); in SplitSocketDataPercent() [all …]
|
| D | parse_slide_fps_trace.cpp | 52 LOGD("ParseSlideFpsTrace::touchTime: (%s)", std::to_string(touchTime).c_str()); in CalculateTime() 58 … LOGD("ParseSlideFpsTrace::doCompositionTime: (%s)", std::to_string(doCompositionTime).c_str()); in CalculateTime() 66 std::to_string(completeTime).c_str(), frameNum); in CalculateTime() 96 LOGD("AppSwiperScroll.touchTime: (%s)", std::to_string(touchTime).c_str()); in AppSwiperScroll() 106 std::to_string(completeTime).c_str(), frameNum); in AppSwiperScroll() 114 LOGD("AppSwiperScroll.responseTime: (%s)", std::to_string(responseTime).c_str()); in AppSwiperScroll()
|
| D | effective.cpp | 52 templateMap["fpsWarn"] = std::to_string(fcf.fps); in ItemData() 53 templateMap["FrameTimeWarn"] = std::to_string(fcf.currentFpsTime); in ItemData() 54 templateMap["TraceTime"] = std::to_string(startCaptuerTime_); in ItemData() 80 auto thGetTrace = [this, timeStamp]() { this->GetHiperf(std::to_string(timeStamp)); }; in ThreadGetHiperf() 101 … trtmp = strOne_ + hiPrefix + traceName + strTwo_ + "\n" + strThree_ + std::to_string(requestId_) + in SetHiperf()
|
| /developtools/profiler/host/smartperf/client/client_command/ |
| D | CPU.cpp | 68 std::string cpuFreqStr = std::to_string(cpuFreqInfo[i].curFreq); in GetCpuFreqItemData() 69 std::string cpuId = std::to_string(cpuFreqInfo[i].cpuId); in GetCpuFreqItemData() 83 std::string userUsageStr = std::to_string(workLoads[i].userUsage * oneHundred); in GetCpuUsageItemData() 84 std::string niceUsageStr = std::to_string(workLoads[i].niceUsage * oneHundred); in GetCpuUsageItemData() 85 std::string systemUsageStr = std::to_string(workLoads[i].systemUsage * oneHundred); in GetCpuUsageItemData() 86 std::string idleUsageStr = std::to_string(workLoads[i].idleUsage * oneHundred); in GetCpuUsageItemData() 87 std::string ioWaitUsageStr = std::to_string(workLoads[i].ioWaitUsage * oneHundred); in GetCpuUsageItemData() 88 std::string irqUsageStr = std::to_string(workLoads[i].irqUsage * oneHundred); in GetCpuUsageItemData() 89 std::string softIrqUsageStr = std::to_string(workLoads[i].softIrqUsage * oneHundred); in GetCpuUsageItemData() 90 … std::string totalUsageStr = std::to_string((workLoads[i].userUsage + workLoads[i].niceUsage + in GetCpuUsageItemData() [all …]
|
| D | GpuCounterCallback.cpp | 129 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 131 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 133 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 135 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 137 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 139 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 141 gpuCounterInstance.AddGpuCounterRealtimeData(std::to_string( in SplitSocketDataValue() 158 std::to_string(realtimeGpuPerfInfoData.gpuLoadPercentage) + "_"); in SplitSocketDataPercent() 160 std::to_string(realtimeGpuPerfInfoData.vertexLoadPercentage) + "_"); in SplitSocketDataPercent() 162 std::to_string(realtimeGpuPerfInfoData.fragmentLoadPercentage) + "_"); in SplitSocketDataPercent() [all …]
|
| D | stalling_rate_trace.cpp | 87 std::to_string(appFrameLossRate).c_str(), in CalcFrameRate() 88 std::to_string(swiperFrameLossRate).c_str(), in CalcFrameRate() 89 std::to_string(tabsFrameLossRate).c_str()); in CalcFrameRate() 183 line.c_str(), std::to_string(appListDynamicFinishTime).c_str()); in AppList() 188 line.c_str(), std::to_string(appListDynamicStartTime).c_str()); in AppList() 200 std::string waitFenceId = "|H:Waiting for Present Fence " + std::to_string(fenceId); in AppList() 204 LOGD("frameLossTime: (%s)", std::to_string(frameLossTime).c_str()); in AppList() 219 std::to_string(diffTime).c_str(), std::to_string(totalFrameLossTime).c_str()); in GetFrameLossTime() 291 line.c_str(), std::to_string(swiperDynamicStartTime).c_str()); in AppSwiperScroll() 301 line.c_str(), std::to_string(swiperDynamicFinishTime).c_str()); in AppSwiperScroll() [all …]
|
| D | parse_slide_fps_trace.cpp | 52 LOGD("ParseSlideFpsTrace::touchTime: (%s)", std::to_string(touchTime).c_str()); in CalculateTime() 58 … LOGD("ParseSlideFpsTrace::doCompositionTime: (%s)", std::to_string(doCompositionTime).c_str()); in CalculateTime() 66 std::to_string(completeTime).c_str(), frameNum); in CalculateTime() 96 LOGD("AppSwiperScroll.touchTime: (%s)", std::to_string(touchTime).c_str()); in AppSwiperScroll() 106 std::to_string(completeTime).c_str(), frameNum); in AppSwiperScroll() 114 LOGD("AppSwiperScroll.responseTime: (%s)", std::to_string(responseTime).c_str()); in AppSwiperScroll()
|
| D | effective.cpp | 52 templateMap["fpsWarn"] = std::to_string(fcf.fps); in ItemData() 53 templateMap["FrameTimeWarn"] = std::to_string(fcf.currentFpsTime); in ItemData() 54 templateMap["TraceTime"] = std::to_string(startCaptuerTime_); in ItemData() 80 auto thGetTrace = [this, timeStamp]() { this->GetHiperf(std::to_string(timeStamp)); }; in ThreadGetHiperf() 101 … trtmp = strOne_ + hiPrefix + traceName + strTwo_ + "\n" + strThree_ + std::to_string(requestId_) + in SetHiperf()
|
| /developtools/smartperf_host/smartperf_device/device_command/scenarios/src/ |
| D | stalling_rate_trace.cpp | 87 std::to_string(appFrameLossRate).c_str(), in CalcFrameRate() 88 std::to_string(swiperFrameLossRate).c_str(), in CalcFrameRate() 89 std::to_string(tabsFrameLossRate).c_str()); in CalcFrameRate() 183 line.c_str(), std::to_string(appListDynamicFinishTime).c_str()); in AppList() 188 line.c_str(), std::to_string(appListDynamicStartTime).c_str()); in AppList() 200 std::string waitFenceId = "|H:Waiting for Present Fence " + std::to_string(fenceId); in AppList() 204 LOGD("frameLossTime: (%s)", std::to_string(frameLossTime).c_str()); in AppList() 219 std::to_string(diffTime).c_str(), std::to_string(totalFrameLossTime).c_str()); in GetFrameLossTime() 291 line.c_str(), std::to_string(swiperDynamicStartTime).c_str()); in AppSwiperScroll() 301 line.c_str(), std::to_string(swiperDynamicFinishTime).c_str()); in AppSwiperScroll() [all …]
|
| /developtools/smartperf_host/smartperf_host/trace_streamer/src/metrics/ |
| D | metrics.cpp | 239 ANON_RSS + MIN + std::to_string(item.overallCounters.min) + "," + MAX + in UpdataRepeateValueByTraceMem() 240 std::to_string(item.overallCounters.max) + "," + AVG + in UpdataRepeateValueByTraceMem() 241 std::to_string(item.overallCounters.avg) + "}}},"; in UpdataRepeateValueByTraceMem() 249 ANON_RSS + MIN + std::to_string(item.overallCounters.min) + "," + MAX + in UpdataRepeateValueByTopTen() 250 std::to_string(item.overallCounters.max) + "," + AVG + in UpdataRepeateValueByTopTen() 251 std::to_string(item.overallCounters.avg) + "}}},"; in UpdataRepeateValueByTopTen() 259 … std::to_string(item.anonRss.ts) + "," + OOM_SCORE + std::to_string(item.anonRss.oomScore) + in UpdataRepeateValueByMemUnagg() 260 "," + VALUE + std::to_string(item.anonRss.value) + "}," + FILE_RSS + TS + in UpdataRepeateValueByMemUnagg() 261 … std::to_string(item.fileRss.ts) + "," + OOM_SCORE + std::to_string(item.fileRss.oomScore) + in UpdataRepeateValueByMemUnagg() 262 "," + VALUE + std::to_string(item.fileRss.value) + "}," + SWAP + TS + in UpdataRepeateValueByMemUnagg() [all …]
|
| /developtools/profiler/device/services/profiler_service/test/unittest/ |
| D | profiler_capability_manager_test.cpp | 67 cap.set_path(DEFAULT_TEST_PATH + "libcap_" + std::to_string(i) + ".so"); 68 cap.set_name("cap_" + std::to_string(i)); 87 cap.set_path(DEFAULT_TEST_PATH + "libcap_" + std::to_string(i) + ".so"); 88 cap.set_name("cap_" + std::to_string(i)); 94 cap.set_name("cap_" + std::to_string(i)); 133 cap.set_path(DEFAULT_TEST_PATH + "libcap_" + std::to_string(i) + ".so"); 134 cap.set_name("cap_" + std::to_string(i));
|
| /developtools/smartperf_host/smartperf_host/trace_streamer/src/base/ |
| D | filter_constraints.cpp | 55 idxStr = "C" + std::to_string(constraints_.size()); in ToString() 57 idxStr += " " + std::to_string(constraints_[i].col); in ToString() 58 idxStr += " " + std::to_string(constraints_[i].op); in ToString() 60 idxStr += " O" + std::to_string(orderBys_.size()); in ToString() 62 idxStr += " " + std::to_string(orderBys_[i].iColumn); in ToString() 63 idxStr += " " + std::to_string(orderBys_[i].desc); in ToString()
|
| /developtools/hdc/hdc_rust/src/transfer/ |
| D | usb.rs | 75 c_str.to_str().unwrap().to_string() in usb_init() 84 return Err(utils::error_other("cannot access usb path".to_string())); in usb_init() 89 return Err(utils::error_other("cannot open usb ep0".to_string())); in usb_init() 94 return Err(utils::error_other("cannot open usb ep1".to_string())); in usb_init() 99 return Err(utils::error_other("cannot open usb ep2".to_string())); in usb_init() 158 Err(utils::error_other("usb read error".to_string())) in read_frame() 172 crate::warn!("parse usb head error: {}", e.to_string()); in check_protocol_head() 187 Err(utils::error_other("usb write failed".to_string())) in usb_write_all() 203 Err(utils::error_other("usb write failed".to_string())) in write_all()
|
| /developtools/ace_ets2bundle/koala-wrapper/koalaui/interop/src/cpp/ |
| D | DeserializerBase.h | 153 result->append(".dummy=" + std::to_string(value.dummy)); in WriteToString() 173 result->append("0x" + std::to_string((uint64_t)value)); in WriteToString() 179 result->append("0x" + std::to_string((uint64_t)value)); in WriteToString() 186 result->append(".id=" + std::to_string(value.id)); in WriteToString() 194 result->append(".id=" + std::to_string(value->id)); in WriteToString() 221 result->append(".resourceId=" + std::to_string(value->resourceId)); in WriteToString() 621 result->append(std::to_string(value)); in WriteToString() 626 result->append(std::to_string(*value)); in WriteToString() 631 result->append(std::to_string(value)); in WriteToString() 636 result->append(std::to_string(value)); in WriteToString() [all …]
|
| /developtools/profiler/device/plugins/ftrace_plugin/src/ |
| D | ftrace_fs_ops.cpp | 154 return WriteTraceFile(path, std::to_string(static_cast<int>(size))) > 0; in SetSavedCmdLinesSize() 169 std::string statusPath = "/proc/" + std::to_string(pid) + "/status"; in GetTgidFromStatus() 191 std::string path = "/proc/" + std::to_string(pid) + "/comm"; in GetProcessComm() 200 std::string path = "/proc/" + std::to_string(pid) + "/task/" + std::to_string(tid) + "/comm"; in GetThreadComm() 209 return ReadTraceFile("/per_cpu/cpu" + std::to_string(cpu) + "/stats"); in GetPerCpuStats() 214 return ftraceRoot_ + "/per_cpu/cpu" + std::to_string(cpu) + "/trace_pipe_raw"; in GetRawTracePath() 248 return WriteTraceFile(path, std::to_string(static_cast<int>(enable))) > 0; in SetRecordCmdOption() 254 return WriteTraceFile(path, std::to_string(static_cast<int>(enable))) > 0; in SetRecordTgidOption() 260 return WriteTraceFile(path, std::to_string(sizeKb)) > 0; in SetBufferSizeKb()
|