[SPAM] Re: Official request: Please make GNU grep the default

Niclas Zeising niclas.zeising at gmail.com
Fri Aug 20 09:53:30 UTC 2010


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


More information about the freebsd-current mailing list