some questions about gprof
ronghua zhang
rz5b@cs.virginia.edu
Thu Aug 2 11:22:00 GMT 2001
I wrote a simple programe test.c:
#incude <malloc.h>
main(){
int i;
char *p;
for (i = 0; i<10000; i++){
if (i % 10) p =(char*)malloc(16);
else p = (char*)malloc(16);
}
}
and compile it using 'gcc -g -pg -a test.c -o test'.
After test finish runing, I first run gprof like this: gprof -b -p test. But
I can't find any record on the malloc sytem call.
Then I try the Annotated Source code listing by 'gprof -b -A test', but
output is nothing.
So please tell me how to show the number of system and annotated source code
listing. thanks
my os is solaris, gcc-2.95.2, gprof -2.6.
ronghua
More information about the Binutils
mailing list