From owner-freebsd-hackers Mon Feb 5 3:28:27 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 9915737B401 for ; Mon, 5 Feb 2001 03:28:09 -0800 (PST) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 5 Feb 2001 11:28:08 +0000 (GMT) Date: Mon, 5 Feb 2001 11:28:07 +0000 From: David Malone To: Lev Serebryakov Cc: hackers@FreeBSD.ORG Subject: Re: gprof & granularity of output Message-ID: <20010205112807.A42431@walton.maths.tcd.ie> References: <54433242820.20010205135243@serebryakov.spb.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <54433242820.20010205135243@serebryakov.spb.ru>; from lev@serebryakov.spb.ru on Mon, Feb 05, 2001 at 01:52:43PM +0300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Feb 05, 2001 at 01:52:43PM +0300, Lev Serebryakov wrote: > Is here method to decrease granularity of grpof output for some > function? I need know time of execution of every statement (loop, > if-then-else, etc.) of one function in my c program... You could try using gcov - it tells you how many times each line was executed. Unfortunately gcov isn't installed by default in -stable at the moment. There are patches in: http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18574 to enable the building of it. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message