From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 12 03:55:46 2006 Return-Path: X-Original-To: freebsd-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 31BE216A5D0 for ; Tue, 12 Dec 2006 03:55:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2F2F43CBF for ; Tue, 12 Dec 2006 03:54:24 +0000 (GMT) (envelope-from adrian.chadd@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1640480wxc for ; Mon, 11 Dec 2006 19:55:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=CCXltcp3nesWRN74KInJsQJIq1belp8YxzITyIMR0UAGCeC2q/Fdxfoj0vxi9JmEfl85cYJIavBPxA/MoJL0dtrnMr/wGTX+jLFmqhWY+ysalcvhjOL7tZzjSKmv03nt/hWu5IElxbTzVcZGMD15Bu/u4WfUK+nvFCqKvsO5hmM= Received: by 10.90.25.7 with SMTP id 7mr7875174agy.1165895744000; Mon, 11 Dec 2006 19:55:44 -0800 (PST) Received: by 10.90.31.12 with HTTP; Mon, 11 Dec 2006 19:55:43 -0800 (PST) Message-ID: Date: Tue, 12 Dec 2006 12:55:43 +0900 From: "Adrian Chadd" Sender: adrian.chadd@gmail.com To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 165a20a788f5d91f Subject: pmcstat and squid 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: Tue, 12 Dec 2006 03:55:46 -0000 I'm trying to use pmcstat to profile userspace time used in Squid. I just can't seem to get pmcstat to report anything useful. The last thing I tried was something like: # pmcstat -O file -P instructions -t # pmcstat -R file -g # ls k7-retired-instructions kernel.gmon There doesn't seem to be a good example for process-based counting stuff with PMC. Could anyone give me a hand? Thanks! adrian -- Adrian Chadd - adrian@freebsd.org