On 12/23/06, Kumar Appaiah akumar@ee.iitm.ac.in wrote:
On 22/12/06, Mohan Nayaka wrote:
Hi all I am planning to do a little write up on gprof this weekend & put it up
on
the wiki.
While you are at it, I'd like to ask a query regarding gprof.
I have some code which will eventually go into a shared object, say libxyz.so. a.out will call a function in this shared object. Is there a way to profile the code in the shared object as well? I remember having read the man page and have not found a way...
Thanks.
Kumar
I managed to get a call-graph profile with the libxyz.so but I needed to compile it like this: gcc -c -shared glug.c -o libxyz.so -g -pg I will try to see if gcov can help here.
Anyway, my intention was to create an introductory doc like Anurag's on gdb.
Regards, Mohan S N