Date: Fri, 20 Aug 2010 11:36:29 +0200 From: Niclas Zeising <niclas.zeising@gmail.com> To: freebsd-current@freebsd.org Subject: [SPAM] Re: Official request: Please make GNU grep the default Message-ID: <4C6E4C9D.8030306@gmail.com> In-Reply-To: <868w41y7ia.fsf@ds4.des.no> References: <4C6505A4.9060203@FreeBSD.org> <4C6C1CFE.6060900@FreeBSD.org> <20100818.121635.431102609571763034.imp@bsdimp.com> <86bp8zdkp4.fsf@ds4.des.no> <4C6D0BBB.90304@continum.net> <867hjmdfdo.fsf@ds4.des.no> <4C6D794F.4090801@FreeBSD.org> <868w41y7ia.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2010-08-20 11:10, Dag-Erling Smørgrav wrote: > > If you have profiling libraries installed, you can build a profiling > version of grep (or any program) like so: > > % cd /usr/src/usr.bin/grep > % make clean > % make DEBUG_FLAGS="-pg -g" -DNO_SHARED > > Do *not" make install, because the result will be dog slow and you don't > want to use it in production. Every time you run it, it will leave a > file named grep.gmon in your current directory, so: > As a side note, this maybe should be posted in the handbook and/or on the wiki for reference, so people who want to profile slow applications know how to do it. Regards! //Niclas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C6E4C9D.8030306>
