Home
last modified time | relevance | path

Searched refs:curProcs_ (Results 1 – 6 of 6) sorted by relevance

/base/hiviewdfx/hidumper/services/native/src/
Ddump_manager_cpu_service.cpp255 curProcs_.clear(); in ResetParam()
279 if (!DumpCpuInfoUtil::GetInstance().GetCurProcInfo(curProcs_)) { in DumpCpuUsageData()
398 for (size_t i = 0; i < curProcs_.size(); i++) { in CreateCPUStatString()
399 if (curProcs_[i] == nullptr) { in CreateCPUStatString()
402 std::shared_ptr<ProcInfo> oldProc = GetOldProc(curProcs_[i]->pid); in CreateCPUStatString()
404 curProcs_[i]->userSpaceUsage = in CreateCPUStatString()
405 (curProcs_[i]->uTime - oldProc->uTime) * HUNDRED_PERCENT_VALUE / totalDeltaTime; in CreateCPUStatString()
406 curProcs_[i]->sysSpaceUsage = in CreateCPUStatString()
407 (curProcs_[i]->sTime - oldProc->sTime) * HUNDRED_PERCENT_VALUE / totalDeltaTime; in CreateCPUStatString()
408curProcs_[i]->totalUsage = curProcs_[i]->userSpaceUsage + curProcs_[i]->sysSpaceUsage; in CreateCPUStatString()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/src/util/
Ddump_cpu_info_util.cpp44 curProcs_.clear(); in ~DumpCpuInfoUtil()
55 oldProcs_.assign(curProcs_.begin(), curProcs_.end()); in UpdateCpuInfo()
56 GetCurProcInfo(curProcs_); in UpdateCpuInfo()
234 procInfos.assign(curProcs_.begin(), curProcs_.end()); in GetOldProcInfo()
244 for (size_t i = 0; i < curProcs_.size(); i++) { in GetOldSpecProcInfo()
245 if (curProcs_[i] == nullptr) { in GetOldSpecProcInfo()
248 if (!IsNumericStr(curProcs_[i]->pid)) { in GetOldSpecProcInfo()
252 if (!StrToInt(curProcs_[i]->pid, specPid)) { in GetOldSpecProcInfo()
256 CopyProcInfo(specProc, curProcs_[i]); in GetOldSpecProcInfo()
/base/hiviewdfx/hidumper/frameworks/native/include/executor/
Dcpu_dumper.h40 std::vector<std::shared_ptr<ProcInfo>> curProcs_; variable
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dcpu_dumper.cpp72 curProcs_.clear(); in AfterExecute()
/base/hiviewdfx/hidumper/frameworks/native/include/util/
Ddump_cpu_info_util.h91 std::vector<std::shared_ptr<ProcInfo>> curProcs_; variable
/base/hiviewdfx/hidumper/services/native/include/
Ddump_manager_cpu_service.h80 std::vector<std::shared_ptr<ProcInfo>> curProcs_; variable