This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: profile system API performance
- From: Nick Clifton <nickc at redhat dot com>
- To: Lin George <george4academic at yahoo dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 14 Feb 2007 09:24:49 +0000
- Subject: Re: profile system API performance
- References: <111281.34957.qm@web32106.mail.mud.yahoo.com>
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