Compiled with gcc -pg, but no gmon.out produced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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
	#include <stdio.h>
	int main(void)
	{
		printf("Hello, world!\n");
		return 0;
	}

 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
	Hello, world!
	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.

Thanks.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux