This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
some questions about gprof
- To: <binutils at gcc dot gnu dot org>
- Subject: some questions about gprof
- From: "ronghua zhang" <rz5b at cs dot virginia dot edu>
- Date: Thu, 2 Aug 2001 14:19:42 -0400
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