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

Method shouldSample

src/processSampler.cpp:71–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71bool ProcessSampler::shouldSample(const u64 wall_time) const {
72 return _sampling_interval > 0 && wall_time >= _last_sample_time + _sampling_interval;
73}
74
75bool ProcessSampler::getProcessInfo(int pid_index, u64 sampling_time, ProcessInfo& info) {
76 const int pid = _pids[pid_index];

Callers 1

processMonitorCycleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected