From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 18 19:16:11 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B779C16A468 for ; Mon, 18 Jun 2007 19:16:11 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mx1.freebsd.org (Postfix) with ESMTP id 432EA13C448 for ; Mon, 18 Jun 2007 19:16:11 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l5IJG9Xr003448; Tue, 19 Jun 2007 05:16:09 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l5IJG9e5003447; Tue, 19 Jun 2007 05:16:09 +1000 (EST) (envelope-from peter) Date: Tue, 19 Jun 2007 05:16:09 +1000 From: Peter Jeremy To: Garrett Cooper Message-ID: <20070618191609.GM1181@turion.vk2pj.dyndns.org> References: <467636C0.6040604@u.washington.edu> <20070618081532.GI1181@turion.vk2pj.dyndns.org> <46764865.9030203@u.washington.edu> <20070618133711.GA94692@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XuV1QlJbYrcVoo+x" Content-Disposition: inline In-Reply-To: <20070618133711.GA94692@freebsd.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.15 (2007-04-06) Cc: hackers@freebsd.org Subject: Re: Making sense of ktrace(1) output X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 19:16:11 -0000 --XuV1QlJbYrcVoo+x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Jun-18 15:37:11 +0200, Roman Divacky wrote: >well.. instead of using ktrace I'd suggest building profiled pkg_add >and see that way where the time is spent. ktrace is great if you dont >have the source code... but you do :) If you decide to go this route, you might like to apply http://www.freebsd.org/cgi/query-pr.cgi?pr=3D99800 By default gmon.out is overwritten by each process so you will only get the output from the last process of a given name. My patch optionally saves the profiling output each process in a separate file. gprof(1) can already accumulate the output from multiple files so this patch gives you the ability to profile multiple executions of a single executable. You will still need to glue together the profiling results from each executable. --=20 Peter Jeremy --XuV1QlJbYrcVoo+x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGdtn5/opHv/APuIcRAmkyAKCboAL6jB2sRTjQluQcvc+tPlpSOACfbzet gJzXr6ckSL6Mk/PdT9nopf4= =AIBr -----END PGP SIGNATURE----- --XuV1QlJbYrcVoo+x--