What is a good profiling tool ? - problem with gprof

J.B.W.Webber J.B.W.Webber@kent.ac.uk
Mon Jun 17 16:46:00 GMT 2013

Hi, I am trying to find in which function call the most time is being spent.

I am using gcc and trying to compile and link with -g and -pg.
i.e. for a trivial test :

$ cat helloworld.c
/* Hello World program */
    printf("Hello World\n");

$ gcc -g -pg -c helloworld.c
$ gcc -pg helloworld.o
helloworld.o: In function `main':
helloworld.c:6: undefined reference to `_mcount'
collect2: ld returned 1 exit status

Any ideas ? Am I missing a .h call ? Or do I need to link to something ?

I have just updated cygwin. I attach cygcheck.out

Or any suggestions for another profiling tool that actually reports times ?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 95966 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20130617/cf034ea9/attachment.obj>
-------------- next part --------------
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list