Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jun 2005 20:06:48 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Harrison Peter CSA BIRKENHEAD <peter.harrison@dwp.gsi.gov.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: -DNOPROFILE with make buildworld...
Message-ID:  <20050621180648.GB40187@slackbox.xs4all.nl>
In-Reply-To: <D8E3EB52364A0842A853E0944FD390D93176D9@DMM00022.link2.gpn.gov.uk>
References:  <D8E3EB52364A0842A853E0944FD390D93176D9@DMM00022.link2.gpn.gov.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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