profile system API performance

Segher Boessenkool segher@kernel.crashing.org
Tue Feb 20 23:01:00 GMT 2007


>> 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



More information about the Binutils mailing list