Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
static inline clockid_t thread_cpu_clock(unsigned int tid) {
24
return ((~tid) << 3) | 6; // CPUCLOCK_SCHED | CPUCLOCK_PERTHREAD_MASK
25
}
26
27
28
int CTimer::_max_timers = 0;
Callers
1
createForThread
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected