/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/ |
H A D | faultlog_formatter_unittest.cpp | 55 std::string pidStr; in HWTEST_F() local 58 FaultLogger::WriteStackTraceFromLog(fd, pidStr, path); in HWTEST_F() 61 FaultLogger::WriteStackTraceFromLog(fd, pidStr, path); in HWTEST_F()
|
/base/hiviewdfx/hiview/test/moduletest/common/ |
H A D | hiview_plugin_platform_module_test.cpp | 49 std::string pidStr = GetCmdResultFromPopen(cmd);
in GetServicePid() local 51 OHOS::HiviewDFX::StringUtil::ConvertStringTo<int32_t>(pidStr, pid);
in GetServicePid() 52 printf("the pid of service(%s) is %s \n", serviceName.c_str(), pidStr.c_str());
in GetServicePid()
|
/base/sensors/medical_sensor/services/medical_sensor/test/unittest/phone/ |
H A D | medical_proxy_test.cpp | 98 std::string pidStr(buf); in GetSensorServicePid() 99 pidStr = TrimStr(pidStr, '\n'); in GetSensorServicePid() 100 HiLog::Info(LABEL, "pidStr is : %{public}s", pidStr.c_str()); in GetSensorServicePid() 101 if (pidStr.empty()) { in GetSensorServicePid() 105 if (IsNumericStr(pidStr)) { in GetSensorServicePid() 106 pid = std::stoi(pidStr); in GetSensorServicePid()
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
H A D | faultlog_formatter.h | 27 void WriteStackTraceFromLog(int32_t fd, const std::string& pidStr, const std::string& path);
|
H A D | faultlog_formatter.cpp | 181 void WriteStackTraceFromLog(int32_t fd, const std::string& pidStr, const std::string& path) in WriteStackTraceFromLog() argument 202 (line.find(pidStr) != std::string::npos)) { in WriteStackTraceFromLog() 207 (line.find(pidStr) != std::string::npos)) { in WriteStackTraceFromLog()
|
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
H A D | hitrace_meter.cpp | 172 std::string pidStr = std::to_string(getprocpid()); in InitPid() local 173 int ret = strcpy_s(g_pid, PID_BUF_SIZE, pidStr.c_str()); in InitPid() 175 HILOG_ERROR(LOG_CORE, "pid[%{public}s] strcpy_s fail ret: %{public}d.", pidStr.c_str(), ret); in InitPid() 184 HILOG_INFO(LOG_CORE, "pid[%{public}s] first get g_tagsProperty: %{public}s", pidStr.c_str(), in InitPid() 190 std::string pidStr = std::to_string(getprocpid()); in ReloadPid() local 191 int ret = strcpy_s(g_pid, PID_BUF_SIZE, pidStr.c_str()); in ReloadPid() 193 HILOG_ERROR(LOG_CORE, "pid[%{public}s] strcpy_s fail ret: %{public}d.", pidStr.c_str(), ret); in ReloadPid() 448 std::string pidStr = std::string(g_pid); in SetMainThreadInfo() local 449 std::string pidFixStr = std::string(PID_STR_MAX - pidStr.length(), ' '); in SetMainThreadInfo() 450 g_appTracePrefix += "-" + pidStr in SetMainThreadInfo() 469 std::string pidStr = std::string(g_pid); SetAllThreadInfo() local [all...] |
H A D | hitrace_dump.cpp | 1322 std::string pidStr = item.substr(pos + 1);
in ParseArgs() local 1323 SetCmdTraceIntParams(pidStr, cmdTraceParams.appPid);
in ParseArgs() 1326 pidStr.c_str());
in ParseArgs() 1329 OHOS::system::SetParameter("debug.hitrace.app_pid", pidStr);
in ParseArgs()
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
H A D | memory_collector_impl.cpp | 516 std::string pidStr = std::to_string(pid);
in CollectRawSmaps() local 517 std::string fileName = PROC + pidStr + "/smaps";
in CollectRawSmaps() 518 std::string preFix = "proc_smaps_" + pidStr + "_";
in CollectRawSmaps() 552 static std::string GetSnapshotPath(const std::string& dirPath, const std::string& pidStr)
in GetSnapshotPath() argument 566 if (pidStr.compare(parsePidStr) != 0) {
in GetSnapshotPath() 576 std::string pidStr = std::to_string(pid);
in CollectHprof() local 584 std::string preFix = "jsheap_" + pidStr + "_";
in CollectHprof() 591 std::string srcFilePath = GetSnapshotPath("/data/log/faultlog/temp", pidStr);
in CollectHprof() 593 srcFilePath = GetSnapshotPath("/data/log/reliability/resource_leak/memory_leak", pidStr);
in CollectHprof()
|
/base/hiviewdfx/faultloggerd/test/utils/ |
H A D | dfx_test_util.cpp | 79 std::string pidStr = ExecuteCommands(cmd); in GetProcessPid() local 81 std::stringstream pidStream(pidStr); in GetProcessPid() 83 printf("the pid of process(%s) is %s \n", processName.c_str(), pidStr.c_str()); in GetProcessPid()
|
/base/hiviewdfx/hiview/plugins/eventlogger/ |
H A D | event_logger.cpp | 429 std::string pidStr = strList[2].substr(0, strList[2].find(":")); in ParsePeerBinder() local 430 if (pidStr == "") { in ParsePeerBinder() 433 if (processNameMap.find(pidStr) == processNameMap.end()) { in ParsePeerBinder() 434 std::string filePath = "/proc/" + pidStr + "/cmdline"; in ParsePeerBinder() 445 processNameMap[pidStr] = processName; in ParsePeerBinder() 447 HIVIEW_LOGE("Fail to open /proc/%{public}s/cmdline", pidStr.c_str()); in ParsePeerBinder() 450 std::string lineStr = line + " " + pidStr + FreezeJsonUtil::WrapByParenthesis(processNameMap[pidStr]); in ParsePeerBinder()
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/ |
H A D | peer_binder_catcher.cpp | 98 std::string pidStr = ""; in Catch() local 107 pidStr += "," + std::to_string(pidTemp); in Catch() 113 event_->SetValue(LOGGER_EVENT_PEERBINDER, StringUtil::TrimStr(pidStr, ',')); in Catch()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/ |
H A D | dfx_dump_catcher.cpp | 597 std::string pidStr; in DumpCatchMultiPid() local 598 if (DoDumpRemoteLocked(pid, 0, pidStr)) { in DumpCatchMultiPid() 599 msg.append(pidStr + "\n"); in DumpCatchMultiPid()
|