Re: Making sense of ktrace(1) output

看板FB_hackers作者時間18年前 (2007/06/19 03:35), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/8 (看更多)
On Tue, 19 Jun 2007, Peter Jeremy wrote: > On 2007-Jun-18 15:37:11 +0200, Roman Divacky <rdivacky@freebsd.org> 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=99800 > > 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. > > -- > Peter Jeremy > Yeah, I noticed that. Thanks for the heads up on the PR :). Why not create a flag though instead of check to see if an environment variables been set? -Garrett _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #16Tjvf00 (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #16Tjvf00 (FB_hackers)