getrusage with pthreads

Petri Helenius petri at helenius.fi
Mon Oct 6 21:29:10 UTC 2008


Is there a way to get thread-specific CPU utilization like the getrusage 
returns for the whole process? Looking at the kernel sources the 
utilization is accumulated on thread basis and then summed up but it 
would be useful to be able to determine utilization on a single thread 
between two checkpoints. Would pmc or ITIMER_PROF help?

Pete



More information about the freebsd-threads mailing list