This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: profile system API performance


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]