help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build system rules & algorithms


From: Paul Smith
Subject: Re: build system rules & algorithms
Date: Sat, 13 Jun 2009 09:15:32 -0400

On Fri, 2009-06-12 at 22:31 -0400, Eli Zaretskii wrote:
> > Date: Thu, 11 Jun 2009 22:27:48 -0400
> > From: Mike Shal <address@hidden>
> > Cc: address@hidden
> > 
> > Is there a better way to benchmark it to figure out the bottlenecks?
> 
> One way would be to compile and link Make with -pg, invoke Make as you
> always do in this project, and then run gprof on the resulting profile
> data.  Feel free to share the results here.

You can also use valgrind (if you're running on Linux anyway).  I've
used it for memory examination but I'm pretty sure there's a profiling
tool available for it as well.

The trick with both of these is that if you have a recursive make you'll
have to figure out a way to combine the results; I don't think either of
them have that ability natively, which is too bad.  Maybe someone's
already done this.  If you have a non-recursive build environment it's
significantly simpler of course.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]