This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: profile system API performance
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Lin George <george4academic at yahoo dot com>, binutils at sourceware dot org
- Date: Tue, 20 Feb 2007 20:21:10 +0100
- Subject: Re: profile system API performance
- References: <111281.34957.qm@web32106.mail.mud.yahoo.com> <45D2D561.6060208@redhat.com>
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.
Another option is to just link your application statically --
you wont get a call graph or call counts for the library
functions, but you will get the time profile for them.
Segher