Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2002 10:12:27 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Simon Siemonsma <simon.freebsd@hccnet.nl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: What are profiled libraries?
Message-ID:  <20020803001227.GL2730@k7.mavetju>
In-Reply-To: <200208022122.07485.simon.freebsd@hccnet.nl>
References:  <200208022122.07485.simon.freebsd@hccnet.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 02, 2002 at 09:22:07PM +0200, Simon Siemonsma wrote:
> I'm trying to optimise my system.
> Now, I did read some that I should set NOPROFILE=true in my /etc/make.conf 
> file. This should avoid compiling profiles libraries.
> As l like to understand what I'm doing to my system, a few questions:
> 
> What are profiled libraries?
> What is there use?

Profiling a program means that you're trying to find out where it
is spending its time. So at the beginning of every function-call
it keeps track of the time and at the return of the function-call
it memorizes how much time it has spend there. At the end it will
give some statistics regarding which functions were called most,
which took the longest time to complete etc.

It adds a overhead to the program which in 99.99% of the times isn't
used. So to stop people from having this overhead by default, the
normal libraries are unprofiled. If you want to profile your program,
you should explicitely specify it and get it linked with profiled
libraries.

Edwin, long answer to a short question

-- 
Edwin Groothuis      |            Personal website: http://www.MavEtJu.org
edwin@mavetju.org    |    Weblog: http://www.mavetju.org/weblog/weblog.php 
bash$ :(){ :|:&};:   | Interested in MUDs? http://www.FatalDimensions.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020803001227.GL2730>