Date: Tue, 1 Apr 2014 12:29:56 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: Ryan Stone <rysto32@gmail.com> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: Profiling shared libraries Message-ID: <DE49BBEE-5F4F-4A78-BA3F-720C42D889E8@gsoft.com.au> In-Reply-To: <CAFMmRNzPrqzCz=wPegX6SsWQarLoR9rKWYukmiiz4WJiXDh30Q@mail.gmail.com> References: <363F98EE-AF54-475D-AF4A-F99BD3D3CCF9@gsoft.com.au> <CAFMmRNzPrqzCz=wPegX6SsWQarLoR9rKWYukmiiz4WJiXDh30Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_A76B0579-FC20-4FB9-B170-A3DAF3B83C13 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 31 Mar 2014, at 0:37, Ryan Stone <rysto32@gmail.com> wrote: > On Sat, Mar 29, 2014 at 10:43 PM, Daniel O'Connor = <doconnor@gsoft.com.au> wrote: >> 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. >>=20 >> 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. >>=20 >> Thanks >=20 > hwpmc can do it: >=20 > kldload hwpmc > pmcstat -S unhalted-cycles -O /tmp/samples.out sleep 10 > pmcstat -R /tmp/samples.out -G /tmp/callgraph.txt Great, 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=_A76B0579-FC20-4FB9-B170-A3DAF3B83C13 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 iD8DBQFTOh2c5ZPcIHs/zowRAjBeAKCIApGXtDcxGCFnZyaHOi3Q2tRdMQCfTkSe VFv7TfTUvJ9sUWw5xHAHXZg= =++Dn -----END PGP SIGNATURE----- --Apple-Mail=_A76B0579-FC20-4FB9-B170-A3DAF3B83C13--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DE49BBEE-5F4F-4A78-BA3F-720C42D889E8>