Re: gprof's broken in 7-CURRENT

From: Nikos Ntarmos <ntarmos_at_ceid.upatras.gr>
Date: Sat, 1 Dec 2007 21:56:31 +0200
-----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-----
Received on Sat Dec 01 2007 - 18:56:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:23 UTC