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

Function thread_cpu_clock

src/ctimer_linux.cpp:23–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23static inline clockid_t thread_cpu_clock(unsigned int tid) {
24 return ((~tid) << 3) | 6; // CPUCLOCK_SCHED | CPUCLOCK_PERTHREAD_MASK
25}
26
27
28int CTimer::_max_timers = 0;

Callers 1

createForThreadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected