This is the mail archive of the binutils@sources.redhat.com 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]

some questions about gprof


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


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