From owner-freebsd-questions Fri Aug 2 17:12:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55C4C37B400 for ; Fri, 2 Aug 2002 17:12:37 -0700 (PDT) Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB23543E6E for ; Fri, 2 Aug 2002 17:12:36 -0700 (PDT) (envelope-from edwin@mavetju.org) Received: from k7.mavetju (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 55C972B6E5; Sat, 3 Aug 2002 02:12:34 +0200 (CEST) Received: by k7.mavetju (Postfix, from userid 1001) id 928A96A711E; Sat, 3 Aug 2002 10:12:27 +1000 (EST) Date: Sat, 3 Aug 2002 10:12:27 +1000 From: Edwin Groothuis To: Simon Siemonsma Cc: freebsd-questions@freebsd.org Subject: Re: What are profiled libraries? Message-ID: <20020803001227.GL2730@k7.mavetju> Mail-Followup-To: Edwin Groothuis , Simon Siemonsma , freebsd-questions@freebsd.org References: <200208022122.07485.simon.freebsd@hccnet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208022122.07485.simon.freebsd@hccnet.nl> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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