From owner-freebsd-threads@FreeBSD.ORG Wed Feb 1 19:19:00 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C761716A420 for ; Wed, 1 Feb 2006 19:19:00 +0000 (GMT) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9025A43D46 for ; Wed, 1 Feb 2006 19:19:00 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.17.229]) ([10.251.17.229]) by a50.ironport.com with ESMTP; 01 Feb 2006 11:19:00 -0800 Message-ID: <43E109A3.8080904@elischer.org> Date: Wed, 01 Feb 2006 11:18:59 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ilya E Veretenkin References: <408955619.20060201150429@mail.ru> In-Reply-To: <408955619.20060201150429@mail.ru> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-threads@freebsd.org Subject: Re: getting particular thread cpu time X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2006 19:19:00 -0000 Ilya E Veretenkin wrote: >Здравствуйте, freebsd-threads. > >Hello. >I am writing a multi-threaded application and want to see the cpu >usage of each thread of this application. >I know that 'ps -H' outputs cpu usage information for threads, but how >can I found out the correspondence between particular thread in 'ps-H' >output and particular thread ID in my app > if you use libthr you will see a separate kernel thread for each thread. Unfortunatly we are still working on thread statistics so you may not get much in theway of good statistics yet. Thread stats are the next thing for me to work on but I have a $REALJOB time crunch at the moment. >lication? > > >