Home
last modified time | relevance | path

Searched refs:SPUtils (Results 1 - 25 of 30) sorted by relevance

12

/developtools/profiler/host/smartperf/client/client_command/
H A Dsp_utils.cpp50 bool SPUtils::FileAccess(const std::string &fileName) in FileAccess()
54 bool SPUtils::HasNumber(const std::string &str) in HasNumber()
58 bool SPUtils::Cmp(const std::string &a, const std::string &b) in Cmp()
73 bool SPUtils::LoadFile(const std::string &filePath, std::string &content) in LoadFile()
95 bool SPUtils::LoadCmdWithLinkBreak(const std::string &cmd, bool isClearLinkBreak, std::string &result) in LoadCmdWithLinkBreak()
119 bool SPUtils::LoadCmd(const std::string &cmd, std::string &result) in LoadCmd()
124 std::string SPUtils::IncludePathDelimiter(const std::string &path) in IncludePathDelimiter()
133 void SPUtils::ForDirFiles(const std::string &path, std::vector<std::string> &files) in ForDirFiles()
160 bool SPUtils::IsSubString(const std::string &str, const std::string &sub) in IsSubString()
169 void SPUtils
[all...]
H A Dstartup_delay.cpp41 if (SPUtils::IsHmKernel()) { in GetTrace()
46 SPUtils::LoadCmd(cmdString + traceName, result); in GetTrace()
50 SPUtils::LoadCmd(traceFinishStr, str); in GetTrace()
51 SPUtils::LoadCmd(cmdString + traceName, result); in GetTrace()
61 SPUtils::LoadCmd(cmd, str); in GetHisysId()
78 SPUtils::LoadCmd(killCmd + secondStr, str); in GetHisysId()
87 SPUtils::LoadCmd(cmd, str); in GetHisysIdAndKill()
96 SPUtils::LoadCmd(killCmd + hisysIdVec[i], str); in GetHisysIdAndKill()
104 SPUtils::LoadCmd(cmd, resultPid); in GetSpTcp()
116 SPUtils in GetSpTcp()
[all...]
H A DByTrace.cpp39 if (SPUtils::IsHmKernel()) { in ThreadGetTrace()
44 std::string time = std::to_string(SPUtils::GetCurTime()); in ThreadGetTrace()
47 SPUtils::LoadCmd(traceCmdExe, result); in ThreadGetTrace()
54 long long curTime = SPUtils::GetCurTime(); in CheckFpsJitters()
83 SPUtils::LoadCmd(hitrace, result); in CheckHitraceId()
H A DDubai.cpp27 SPUtils::LoadCmd(dumpBubaiB, result); in DumpDubaiBegin()
34 SPUtils::LoadCmd(dumpBubaiF, result); in DumpDubaiFinish()
49 SPUtils::LoadCmd(cpDubai, result); in MoveDubaiDb()
50 SPUtils::LoadCmd(dubaiPathChmod, result); in MoveDubaiDb()
H A Dcontrol_call_cmd.cpp45 SPUtils::LoadCmd(ohTestFps, result); in GetResult()
74 SPUtils::LoadCmd(rmTrace, cmdResult); in TimeDelay()
86 promiseResponse.set_value(SPUtils::GetRadarResponse()); in TimeDelay()
90 promiseComplete.set_value(SPUtils::GetRadarComplete()); in TimeDelay()
94 promiseRadarFrame.set_value(SPUtils::GetRadarFrame()); in TimeDelay()
126 SPUtils::LoadCmd(rmTrace, cmdResult); in SlideList()
141 promiseResponse.set_value(SPUtils::GetRadarResponse()); in SlideList()
145 promiseRadarFrame.set_value(SPUtils::GetRadarFrame()); in SlideList()
173 SPUtils::LoadCmd(rmTrace, cmdResult); in GetFrame()
177 std::string str = SPUtils in GetFrame()
[all...]
H A DTemperature.cpp34 dirs.push_back(SPUtils::IncludePathDelimiter(thermalBasePath) + filename); in ItemData()
46 if (!SPUtils::FileAccess(dirType)) { in ItemData()
52 SPUtils::LoadFile(dirType, type); in ItemData()
53 SPUtils::LoadFile(dirTemp, temp); in ItemData()
H A Dsmartperf_command.cpp43 SPUtils::LoadCmd(cmdStr + pidStr, result); in SmartPerfCommand()
82 std::string result = SPUtils::GetScreen(); in HelpCommand()
94 SPUtils::LoadCmd(cmdStr + pidStr, result); in HelpCommand()
167 int SmartPerfCommand::GetItemInfo(std::multimap<std::string, std::string, decltype(SPUtils::Cmp) *> &spMap) in GetItemInfo()
224 std::multimap<std::string, std::string, decltype(SPUtils::Cmp) *> spMap(SPUtils::Cmp); in ExecCommand()
225 long long lastTime = SPUtils::GetCurTime(); in ExecCommand()
242 long long nextTime = SPUtils::GetCurTime(); in ExecCommand()
267 decltype(SPUtils::Cmp) *> &spMap, int index) const in PrintMap()
281 if (SPUtils in InitSomething()
[all...]
H A Dsp_task.cpp117 SPUtils::LoadCmd(hiprofiler, result); in InitTask()
120 SPUtils::LoadCmd(perf, result); in InitTask()
307 startTime = SPUtils::GetCurTime(); in InitDataFile()
329 long long lastTime = SPUtils::GetCurTime(); in AsyncGetDataMap()
360 long long nextTime = SPUtils::GetCurTime(); in AsyncGetDataMap()
379 realTimeStart = SPUtils::GetCurTime(); in StartTask()
396 if (!SPUtils::FileAccess(thisBasePath)) { in WritePath()
399 SPUtils::LoadCmd(writePath, cmdResult); in WritePath()
409 long long endTime = SPUtils::GetCurTime(); in StopGetInfo()
412 std::string screenStr = SPUtils in StopGetInfo()
[all...]
H A DCapture.cpp69 return SPUtils::GetCurTime(); in GetCurTimes()
76 if (!SPUtils::FileAccess(captureDir)) { in ThreadGetCatch()
78 if (!SPUtils::LoadCmd(capturePath, cmdResult)) { in ThreadGetCatch()
102 if (!SPUtils::FileAccess(captureDir)) { in ThreadGetCatchSocket()
104 if (!SPUtils::LoadCmd(capturePath, cmdResult)) { in ThreadGetCatchSocket()
122 if (!SPUtils::LoadCmd(snapshot + savePath, cmdResult)) { in ThreadGetCatchSocket()
H A DDDR.cpp35 SPUtils::LoadFile(ddrCurFreqPath, ddrfreq); in GetDdrFreq()
37 SPUtils::LoadFile(ddrCurFreqRkPath, ddrfreq); in GetDdrFreq()
H A DPower.cpp26 SPUtils::LoadFile(currentNowPath, currentNow); in ItemData()
28 SPUtils::LoadFile(voltageNowPath, voltageNow); in ItemData()
H A Dsmartperf_main.cpp61 OHOS::SmartPerf::SPUtils::StrSplit(str, "-", out); in g_checkCmdParam()
102 return OHOS::SmartPerf::SPUtils::VeriyParameter(keys, str, errorInfo); in g_checkCmdParam()
145 OHOS::SmartPerf::SPUtils::LoadFile(capacityRmPath, recordPower); in RecordCapacity()
181 std::cout << OHOS::SmartPerf::SPUtils::GetDeviceInfoMap() << std::endl; in ProcessSpecificParameter()
216 OHOS::SmartPerf::SPUtils::SetRkFlag(); in main()
H A Dprofiler_fps.cpp133 OHOS::SmartPerf::SPUtils::GetCurrentTime(ten, lastFpsInfoResult.curTime); in GetResultFPS()
151 SPUtils::StrSplit(line, " ", params); in GetTimeDiff()
269 SPUtils::LoadCmd(dumperSurface, cmdResult); in GetSurface()
292 OHOS::SmartPerf::SPUtils::GetCurrentTime(fifty, lastFpsInfoResult.curTime); in GetFpsInfo()
295 bool onTop = OHOS::SmartPerf::SPUtils::IsForeGround(pkgName); in GetFpsInfo()
297 OHOS::SmartPerf::SPUtils::GetCurrentTime(fifty, lastFpsInfoResult.curTime); in GetFpsInfo()
422 OHOS::SmartPerf::SPUtils::GetCurrentTime(fifty, lastFpsInfoResult.curTime); in selfRerderLayers()
435 SPUtils::LoadCmd(dumperSurface, cmdResult); in GetGameLayer()
H A Dheartbeat.cpp34 SPUtils::LoadCmd(cmd, resultPid); in KillSpId()
46 SPUtils::LoadCmd(killCmd + vec[i], str); in KillSpId()
H A DGPU.cpp70 SPUtils::LoadFile(gpuFreqPath, rkFreq); in GetRkGpuFreq()
78 SPUtils::LoadFile(gpuLoadPath, rkLoad); in GetRkGpuLoad()
H A DFPS.cpp105 OHOS::SmartPerf::SPUtils::GetCurrentTime(fifty, prevResultFpsInfo.curTime); in GetDiffLayersFpsInfo()
117 bool onTop = OHOS::SmartPerf::SPUtils::IsForeGround(pkgName); in GetFpsInfo()
126 OHOS::SmartPerf::SPUtils::GetCurrentTime(fifty, prevResultFpsInfo.curTime); in GetFpsInfo()
252 SPUtils::LoadFile(screenPath, screenInfo); in FindFpsRefreshrate()
266 std::string screen = OHOS::SmartPerf::SPUtils::GetScreen(); in FindFpsRefreshrate()
H A Dsp_profiler_factory.cpp147 SPUtils::StrSplit(message, delimiter, values); in SetByTrace()
154 SPUtils::StrSplit(vItem, delim, vItems); in SetByTrace()
H A Dsdk_data_recv.cpp186 sdkParams.startTime = SPUtils::GetCurTime(); in ServerThread()
304 sdkParams.startTime = SPUtils::GetCurTime(); in SetStartRecordTime()
/developtools/profiler/host/smartperf/client/client_command/test/unittest/
H A Dsp_utils_test.cpp40 * @tc.name: SPUtils::IntegerValueVerification
58 bool ret = SPUtils::IntegerValueVerification(keys, mapInfo, errorInfo); in HWTEST_F()
76 bool ret = SPUtils::IntegerValueVerification(keys, mapInfo, errorInfo); in HWTEST_F()
94 bool ret = SPUtils::IntegerValueVerification(keys, mapInfo, errorInfo); in HWTEST_F()
99 * @tc.name: SPUtils::VerifyValueStr
108 bool ret = SPUtils::VerifyValueStr(mapInfo, errorInfo); in HWTEST_F()
118 bool ret = SPUtils::VerifyValueStr(mapInfo, errorInfo); in HWTEST_F()
129 bool ret = SPUtils::VerifyValueStr(mapInfo, errorInfo); in HWTEST_F()
140 bool ret = SPUtils::VerifyValueStr(mapInfo, errorInfo); in HWTEST_F()
151 bool ret = SPUtils in HWTEST_F()
[all...]
H A Ddubai_test.cpp43 auto ret = OHOS::SmartPerf::SPUtils::LoadCmd("hidumper -s 1213 -a '-b'", result); in HWTEST_F()
53 auto ret = OHOS::SmartPerf::SPUtils::LoadCmd("hidumper -s 1213 -a '-f'", result); in HWTEST_F()
66 auto ret = OHOS::SmartPerf::SPUtils::LoadCmd("cp " + dubaiPath + " " + devicePath, result); in HWTEST_F()
67 auto ret1 = OHOS::SmartPerf::SPUtils::LoadCmd("chmod 777 " + devicePath + "/" + dubaiName, result); in HWTEST_F()
H A Dsp_daemon_test.cpp67 auto ret = SPUtils::LoadCmd(cmd, result); in HWTEST_F()
95 auto ret = SPUtils::LoadCmd(cmd, result); in HWTEST_F()
126 auto ret = SPUtils::LoadCmd(cmd, result); in HWTEST_F()
147 auto ret = SPUtils::LoadCmd(cmd, result); in HWTEST_F()
169 auto ret = SPUtils::LoadCmd(cmd, result); in HWTEST_F()
201 auto ret = SPUtils::LoadCmd(cmd, result); in HWTEST_F()
232 auto ret = SPUtils::LoadCmd(cmd, result); in HWTEST_F()
253 auto ret = SPUtils::LoadCmd(cmd, result); in HWTEST_F()
274 auto ret = SPUtils::LoadCmd(cmd, result); in HWTEST_F()
295 auto ret = SPUtils in HWTEST_F()
[all...]
H A Dbytrace_test.cpp42 if (SPUtils::IsHmKernel()) { in HWTEST_F()
49 std::string time = std::to_string(SPUtils::GetCurTime()); in HWTEST_F()
52 auto ret = SPUtils::LoadCmd(traceCmdExe, result); in HWTEST_F()
73 SPUtils::LoadCmd(cmd, result); in HWTEST_F()
H A Dsmartperf_main_test.cpp73 OHOS::SmartPerf::SPUtils::StrSplit(str, "-", out); in CheckCMDParam()
114 return OHOS::SmartPerf::SPUtils::VeriyParameter(keys, str, errorInfo); in CheckCMDParam()
/developtools/profiler/host/smartperf/client/client_command/include/
H A Dsmartperf_command.h92 int GetItemInfo(std::multimap<std::string, std::string, decltype(SPUtils::Cmp) *> &spMap);
94 void PrintMap(std::multimap<std::string, std::string, decltype(SPUtils::Cmp) *> &spMap, int index) const;
H A Dsp_thread_socket.h52 SPUtils::StrSplit(recvBuf, "::", sps); in SplitMsg()
208 SPUtils::LoadCmd(uinput, cmdResult); in BackDesktop()
222 if (!SPUtils::IsSubString(recvBuf, iterator->second)) { in HandleMsg()
333 retCode = SPUtils::GetCpuNum(); in HandleNullMsg()

Completed in 12 milliseconds

12