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

Method sample

src/processSampler.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45int ProcessSampler::sample(u64 wall_time) {
46 const int pid_count = OS::getProcessIds(_pids, MAX_PROCESSES);
47 cleanupProcessHistory(pid_count);
48 _last_sample_time = wall_time;
49 return pid_count;
50}
51
52void ProcessSampler::cleanupProcessHistory(const int pid_count) {
53 const std::unordered_set<int> active_pid_set(_pids, _pids + pid_count);

Callers 1

processMonitorCycleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected