profile system API performance
Lin George
george4academic@yahoo.com
Thu Feb 15 15:29:00 GMT 2007
Nike, I find rebuild libc is so complicated, needs to refer to some Kernel header files. Do you have any documents to refer for dummy -- like me? :-)
BTW: are there any libc which is already enabled with gprof functions (with -pg profile capability) to steal?
regards,
George
----- Original Message ----
From: Nick Clifton <nickc@redhat.com>
To: Lin George <george4academic@yahoo.com>
Cc: binutils@sourceware.org
Sent: Wednesday, February 14, 2007 5:24:49 PM
Subject: Re: profile system API performance
Hi Lin,
> I find that when I profile the performance of my application, gprof only reports the time elapsed on the functions I developed by myself, but the system API (like memset, malloc, etc) is not calculated.
You need a version of the C library (glibc) compiled with profiling enabled.
> I am wondering how to enable it. I am using Linux.
If a profile-enabled glibc is not provided by the version of Linux that
you are using then you will have to download the sources and build it
yourself.
Cheers
Nick
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
More information about the Binutils
mailing list