Hi,
Le Thu, 29 Jun 2006 11:52:16 -0700,
"Om Narasimhan" <om.turyx@xxxxxxxxx> a écrit :
> Then what might be the best way to measure the time taken by a
> function? Regards,
Maybe you can use OProfile, http://oprofile.sourceforge.net/
« OProfile is a system-wide profiler for Linux systems, capable of
profiling all running code at low overhead. OProfile is released under
the GNU GPL. »
From the FAQ:
« Can OProfile profile the kernel too ?
Yes, it profiles the kernel and all kernel modules by default. Pass the
kernel vmlinux image to the post-profiling tools to get kernel profiles
(or the module .o files). For example, opreport -l /boot/2.6.0/vmlinux »
Sincerly,
Thomas
--
PETAZZONI Thomas - thomas.petazzoni@xxxxxxxx
http://{thomas,sos,kos}.enix.org - Jabber: thomas.petazzoni@xxxxxxxxx
http://{agenda,livret}dulibre.org - http://www.toulibre.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7