public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Measuring per thread CPU consumption & others statistics for NPTL
@ 2003-11-16 16:10 Peter Zaitsev
  2003-11-17  0:27 ` Peter Chubb
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Zaitsev @ 2003-11-16 16:10 UTC (permalink / raw)
  To: linux-kernel

Dear Kernel developers,

I would wish to add to MySQL profiling of CPU and system usage, which
would allow for example to see amount of system/user CPU needed to
process particular query as well as amount of IO needed.

With LinuxThreads I probably can use times() or getrusage() for this
purpose, as Threads share a lot of infrastructure with processes. 

This however would not work with NPTL threads.


Are there any ways to get similar information for thread rather than
process ?

Second question is about accuracy -  Is any way to get system/user CPU
consumption information with more than 1/100 sec accuracy ?

Thank you for your advices.

-- 
Peter Zaitsev, Full-Time Developer
MySQL AB, www.mysql.com

Are you MySQL certified?  www.mysql.com/certification


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <SxNf.4R.13@gated-at.bofh.it>]

end of thread, other threads:[~2003-11-20 18:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-16 16:10 Measuring per thread CPU consumption & others statistics for NPTL Peter Zaitsev
2003-11-17  0:27 ` Peter Chubb
2003-11-17  9:25   ` Peter Zaitsev
2003-11-20 18:02   ` Herbert Poetzl
     [not found] <SxNf.4R.13@gated-at.bofh.it>
     [not found] ` <SFro.3ee.13@gated-at.bofh.it>
     [not found]   ` <SNSi.6vN.39@gated-at.bofh.it>
2003-11-17 16:36     ` John Reiser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox