From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 9 13:35:41 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44BF71065674 for ; Mon, 9 Mar 2009 13:35:41 +0000 (UTC) (envelope-from freebsd@jayloden.com) Received: from mail.jayloden.com (www.jayloden.com [66.150.227.71]) by mx1.freebsd.org (Postfix) with ESMTP id 203DF8FC2E for ; Mon, 9 Mar 2009 13:35:39 +0000 (UTC) (envelope-from freebsd@jayloden.com) Received: from [192.168.15.104] (c-98-221-217-95.hsd1.nj.comcast.net [98.221.217.95]) by mail.jayloden.com (Postfix) with ESMTP id 8F5CA6D605A8; Mon, 9 Mar 2009 09:35:38 -0400 (EDT) Message-ID: <49B51B28.8040604@jayloden.com> Date: Mon, 09 Mar 2009 09:35:36 -0400 From: Jay Loden User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: Dan Nelson References: <200903082156.n28Lup7e085565@lurza.secnetix.de> <49B463D7.9010401@jayloden.com> <20090309012137.GG3398@dan.emsphone.com> In-Reply-To: <20090309012137.GG3398@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: CPU user/kernel time given the PID 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, 09 Mar 2009 13:35:41 -0000 Dan Nelson wrote: > I was wondering why you were having so much trouble finding what you were > looking for, and then I realized I have a patch that I have never submitted > a PR for: the addition of "systime" and "usertime" ps keywords :) It simply > reads the rusage struct, and returns the same values that getrusage() does. Dan, this is great, exactly what I was looking for, didn't think to look for 'rusage' in the values in kinfo_proc. Thanks! -Jay