MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / getProcessInfo

Method getProcessInfo

src/processSampler.cpp:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool ProcessSampler::getProcessInfo(int pid_index, u64 sampling_time, ProcessInfo& info) {
76 const int pid = _pids[pid_index];
77 return OS::getBasicProcessInfo(pid, &info) && populateCpuPercent(info, sampling_time) &&
78 shouldIncludeProcess(info) && OS::getDetailedProcessInfo(&info);
79}

Callers 1

processMonitorCycleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected