BTW, here is an interesting line from the Bugs section of the manual: The profiled program must call "exit"(2) or return normally for the profiling information to be saved in the gmon.out file.
Pat --- On Thu, Aug 12, 2010 at 11:26 AM, Pat Kane <pekan...@gmail.com> wrote: > The NetBSD gprof(1) man page says to use the -pg flag: > > http://netbsd.gw.com/cgi-bin/man-cgi?gprof+1+NetBSD-current > > On Thu, Aug 12, 2010 at 12:43 AM, Daniel Stone <dan...@fooishbar.org> wrote: >> On Thu, Aug 12, 2010 at 07:17:36AM +0200, Matthew Fincham wrote: >>> I sent the email below to the Xorg mailing list, but haven't had a >>> response. Can anyone point me in the right direction for profiling >>> Xorg? >> >> I can't really help you with NetBSD not supporting sysprof or oprofile, >> but to do a -g build, just pass CFLAGS=-g or whatever to ./configure. >> >> Cheers, >> Daniel >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.10 (GNU/Linux) >> >> iEYEARECAAYFAkxjig8ACgkQUVYB1rKAgJTIawCdEgLmDFyrh3XwUendK2bN6sLd >> RqQAnRTeSHR90rRsoOEfFw2sYmqnZBoN >> =NbJN >> -----END PGP SIGNATURE----- >> >> _______________________________________________ >> xorg-devel@lists.x.org: X.Org development >> Archives: http://lists.x.org/archives/xorg-devel >> Info: http://lists.x.org/mailman/listinfo/xorg-devel >> > _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel