gprof's broken in 7-CURRENT
Garrett Cooper
youshi10 at u.washington.edu
Sat Dec 1 12:23:24 PST 2007
On Dec 1, 2007, at 11:56 AM, Nikos Ntarmos wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sat, Dec 01, 2007 at 11:22:37AM -0800, Garrett Cooper wrote:
>> Strange. Maybe there are some inconsistencies between my system and
>> an up-to-date system, or maybe I'm just using gprof incorrectly.
>> Could you show me how you ran pkg_info with gprof please?
>
> The steps I took:
> 1. Add 'CFLAGS+=-pg' to /etc/make.conf
> 2. cd /usr/src/usr.sbin/pkg_install && make obj && make depend &&
> make clean && make
> 4. The profiled pkg_foo executables now reside in the corresponding
> /usr/obj/usr/src/usr.sbin/pkg_install/foo directories. For
> pkg_info,
> that would be .../pkg_install/info/. You can run them from there
> (that's what I did) or 'make install' to put them in /usr/sbin/.
> 5. sudo /usr/obj/usr/src/usr.sbin/pkg_install/info/pkg_info -a >/
> dev/null
> That will leave a pkg_info.gmon in /var/db/pkg/<last port name>/
> (due
> to the chdir(2) thingie I mentioned earlier).
> 6. gprof /usr/obj/usr/src/usr.sbin/pkg_install/info/pkg_info
> /path/to/pkg_info.gmon
>
> \n\n
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.4 (FreeBSD)
> Comment: Nikos Ntarmos <ntarmos at ceid.upatras.gr>
>
> iD8DBQFHUbxvm6J1ac+VFgoRAoKLAKCPFmNwVVZs5tMjLdVh6CwxN9p2eQCfbat4
> /PCIADECwh2PQch3+Rcdqqk=
> =4RLW
> -----END PGP SIGNATURE-----
Well, that was a bit more than I was expecting, but thank you though :).
-Garrett
More information about the freebsd-current
mailing list