From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 02:59:27 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0854B706 for ; Sun, 30 Mar 2014 02:59:27 +0000 (UTC) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 811838FC for ; Sun, 30 Mar 2014 02:59:26 +0000 (UTC) Received: from ur.dons.net.au (ppp118-210-34-185.lns20.adl2.internode.on.net [118.210.34.185]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id s2U2i4vj056573 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 30 Mar 2014 13:14:10 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" Content-Type: multipart/signed; boundary="Apple-Mail=_E84BC45A-F6A9-4A0A-93A5-76911D153DF2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Date: Sun, 30 Mar 2014 13:13:04 +1030 Subject: Profiling shared libraries To: FreeBSD Hackers Message-Id: <363F98EE-AF54-475D-AF4A-F99BD3D3CCF9@gsoft.com.au> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-Mailer: Apple Mail (2.1874) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2014 02:59:27 -0000 --Apple-Mail=_E84BC45A-F6A9-4A0A-93A5-76911D153DF2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, I have a shared library which is loaded into a Tcl interpreter and also = loads submodules and I would like to profile it. Unfortunately it seems = gprof does not grok shared libraries. I did some googling and it look = like Linux has sprof for this but I can't see a port for FreeBSD. Does anyone have any other ideas? I have looked at DTrace but it's a bit fiddly to get working with my = systems in the field so I'd prefer a pure userland solution if possible. Thanks -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Apple-Mail=_E84BC45A-F6A9-4A0A-93A5-76911D153DF2 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iD8DBQFTN4S45ZPcIHs/zowRAm5xAJ9qm0abgTM5N2uOqr+p7tDdm01cXwCfZCiU RdqcmVRVuTVOKW/Agkv19Ow= =bVjb -----END PGP SIGNATURE----- --Apple-Mail=_E84BC45A-F6A9-4A0A-93A5-76911D153DF2--