From owner-freebsd-current@FreeBSD.ORG Fri Aug 20 09:53:30 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 258CA1065672 for ; Fri, 20 Aug 2010 09:53:30 +0000 (UTC) (envelope-from niclas.zeising@gmail.com) Received: from mxf2.bahnhof.se (mxf2.bahnhof.se [213.80.101.26]) by mx1.freebsd.org (Postfix) with ESMTP id CA89C8FC1D for ; Fri, 20 Aug 2010 09:53:29 +0000 (UTC) Received: from localhost (mxf2.local [127.0.0.1]) by mxf2-reinject (Postfix) with ESMTP id 67265969660 for ; Fri, 20 Aug 2010 11:36:36 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MXF2) X-Spam-Flag: YES X-Spam-Score: 5.068 X-Spam-Level: ***** X-Spam-Status: Yes, score=5.068 tagged_above=-99 required=5 tests=[DNS_FROM_RFC_POST=1.708, J_CHICKENPOX_44=0.6, RATWARE_GECKO_BUILD=1.691, SPF_NEUTRAL=1.069] X-Spam-Report: * 1.7 RATWARE_GECKO_BUILD Bulk email fingerprint (Gecko faked) found * 1.1 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) * [SPF failed: Please see http://www.openspf.org/why.html?sender=niclas.zeising%40gmail.com&ip=79.136.90.99&receiver=mxf2.bahnhof.se] * 0.6 J_CHICKENPOX_44 BODY: 4alpha-pock-4alpha * 1.7 DNS_FROM_RFC_POST RBL: Envelope sender in * postmaster.rfc-ignorant.org Received: from mxf2.bahnhof.se ([127.0.0.1]) by localhost (mxf2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c3T4A-h8WFNq for ; Fri, 20 Aug 2010 11:36:32 +0200 (CEST) Received: from [10.32.0.4] (h-90-99.A163.priv.bahnhof.se [79.136.90.99]) by mxf2.bahnhof.se (Postfix) with ESMTP id 828AA969554 for ; Fri, 20 Aug 2010 11:36:32 +0200 (CEST) Message-ID: <4C6E4C9D.8030306@gmail.com> Date: Fri, 20 Aug 2010 11:36:29 +0200 From: Niclas Zeising User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-current@freebsd.org 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> In-Reply-To: <868w41y7ia.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: [SPAM] Re: Official request: Please make GNU grep the default X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2010 09:53:30 -0000 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