Date: Tue, 07 Oct 2008 00:29:04 +0300 From: Petri Helenius <petri@helenius.fi> To: freebsd-threads@freebsd.org Subject: getrusage with pthreads Message-ID: <48EA8320.5050500@helenius.fi>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48EA8320.5050500>