Date: Fri, 20 Aug 2010 11:10:21 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Doug Barton <dougb@FreeBSD.org> Cc: current@freebsd.org Subject: Re: Official request: Please make GNU grep the default Message-ID: <868w41y7ia.fsf@ds4.des.no> In-Reply-To: <4C6D794F.4090801@FreeBSD.org> (Doug Barton's message of "Thu, 19 Aug 2010 11:34:55 -0700") 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Barton <dougb@FreeBSD.org> writes: > There are 2 questions, did I do the right thing, and how should people > report problems in general. As for myself, while I have some facility > in C it's not my strong suit. Yes, I could have produced a profiling > version of grep, but it would have taken me a lot more than 10 minutes > because I don't even build the profiled libs on a regular basis. That's fair. I didn't use to do that because it increases build time considerably, but now I do. 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=3D"-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: % /usr/obj/usr/src/usr.bin/grep/grep -q "^xfce4-wm" /usr/ports/INDEX-9 % gprof /usr/obj/usr/src/usr.bin/grep/grep grep.gmon | less > More generally however I think that we need to be realistic with what > we expect people to do about reporting problems. This is not about "what we expect people to do" but about "what I expect *you*, an experienced FreeBSD committer, to do" :) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868w41y7ia.fsf>