Date: Mon, 18 Jun 2007 08:35:34 -0700 From: Garrett Cooper <youshi10@u.washington.edu> To: Roman Divacky <rdivacky@freebsd.org> Cc: hackers@freebsd.org Subject: Re: Making sense of ktrace(1) output Message-ID: <4676A646.7040003@u.washington.edu> In-Reply-To: <20070618133711.GA94692@freebsd.org> References: <467636C0.6040604@u.washington.edu> <20070618081532.GI1181@turion.vk2pj.dyndns.org> <46764865.9030203@u.washington.edu> <20070618133711.GA94692@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Roman Divacky wrote: > On Mon, Jun 18, 2007 at 01:55:01AM -0700, Garrett Cooper wrote: > >> Peter Jeremy wrote: >> >>> On 2007-Jun-18 00:39:44 -0700, Garrett Cooper <youshi10@u.washington.edu> >>> wrote: >>> >>> >>>> However, I was able to get ktrace output. The only problem is that >>>> ktrace(1) apparently outputs only in binary, instead of plaintext output. >>>> Can I convert it to plaintext somehow and process it? >>>> >>>> >>> kdump(1) >>> >>> >>> >> grazi to all that replied -- that did the trick :). >> >> Now, note to self.. never ever do analysis on something so large as >> pkg_add thunderbird. Really, really bad idea :).. >> >> I'll make up some Perl scripts, produce some histograms, and see if I >> can better trace down this bottleneck. >> > > 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 :) > > roman > Unfortunately I have to profile all of the source up the tree to create profiled symbols, and I'm running into some issues profiling liblegacy. Does anyone have any hints for getting around that, or just profiling all of the relevant libs? Thanks, -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4676A646.7040003>