* alternatives to getrusage() ?
@ 2006-09-06 21:56 Sven Köhler
0 siblings, 0 replies; only message in thread
From: Sven Köhler @ 2006-09-06 21:56 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 870 bytes --]
Hi,
first, if this is the wrong place to ask, then i'm sorry and please
recomm a better place to me.
My goal is to do some precise benchmarking/profiling.
I am looking for (Linux specific) alternatives to getrusage().
As far as i understand, the precision of getrusage() is given by the
timer frequency that can be adjusted in recent kernel-versions. I think
i have the choice between 100Hz, 250Hz and 1000Hz. By chosing 1000Hz, i
get a precision of 1ms, right?
On the other hand, there are things like rdtsc() which reads the clock
counter of the CPU. So does the linux kernel currently provide a
process-specific value which counts the CPU clocks "consumed" by a
process? Maybe there are some patches?
Are there other alternatives that i didn't think about yet?
Are there maybe some kernel-unrelated alternatives?
Thanks,
Sven
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-06 21:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-06 21:56 alternatives to getrusage() ? Sven Köhler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox