From owner-freebsd-questions@FreeBSD.ORG Tue Jun 21 18:06:50 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 94E8F16A41C for ; Tue, 21 Jun 2005 18:06:50 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2885D43D49 for ; Tue, 21 Jun 2005 18:06:49 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr2.xs4all.nl (8.13.3/8.13.3) with ESMTP id j5LI6mYs009184; Tue, 21 Jun 2005 20:06:48 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 4C54C625B; Tue, 21 Jun 2005 20:06:48 +0200 (CEST) Date: Tue, 21 Jun 2005 20:06:48 +0200 From: Roland Smith To: Harrison Peter CSA BIRKENHEAD Message-ID: <20050621180648.GB40187@slackbox.xs4all.nl> Mail-Followup-To: Harrison Peter CSA BIRKENHEAD , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GRPZ8SYKNexpdSJ7" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: -DNOPROFILE with make buildworld... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2005 18:06:50 -0000 --GRPZ8SYKNexpdSJ7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 21, 2005 at 01:49:06PM +0100, Harrison Peter CSA BIRKENHEAD wro= te: > I've cvsup'ed my source tree, and stepping through the instructions in > the handbook I note that it recommends running make buildworld with > -DNOPROFILE (or specifying it in make.conf). I'm not clear what the > impact of running profiled libraries is against non-profiled > libraries. I've done a quick search via google and through the list > archives without success. It's not about profiled libraries, but profiling libraries. Let me explain. Programs that are compiled with profiling enabled gather data about their run-time behaviour, and write that to a file, usualy gmon.out. If the program is linked to a profiling library, data about the time spent running functions in that library are also recorded. The contents of that file can be analyzed with the gprof program, to see where the program spends its time. Now if you compile a program with not-profiling libraries, gprof cannot tell you much about the time your program spent in functions in that librar= y. Programs that have been compiled with profiling enabled might run fractionally slower that without. But I doubt the difference is significant on a modern machine.=20 I'll be bold and say that modern machines are so fast that there is seldom need to profile a program. Roland --=20 R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt --GRPZ8SYKNexpdSJ7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCuFc4EnfvsMMhpyURAnyfAJ9ZFAWqrZz9J2dFGELSgSiFkfteBQCffgMT jw9c4q2TklZtABAxQ7tADjc= =l6mr -----END PGP SIGNATURE----- --GRPZ8SYKNexpdSJ7--