I'm having some trouble trying to profile my code. I'm just testing it out with a simple hello world program:
$ cat bar.c
However, when I compile and run it, no gmon.out is produced (as required by gprof):
$ gcc -o bar bar.c -pg && ./bar && ls ./gmon.out
ls: ./gmon.out: No such file or directory
Is there anything obvious that I'm screwing up here? I'm running this on OS X 10.5.