Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2001 11:28:07 +0000
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Lev Serebryakov <lev@serebryakov.spb.ru>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: gprof & granularity of output
Message-ID:  <20010205112807.A42431@walton.maths.tcd.ie>
In-Reply-To: <54433242820.20010205135243@serebryakov.spb.ru>; from lev@serebryakov.spb.ru on Mon, Feb 05, 2001 at 01:52:43PM %2B0300
References:  <54433242820.20010205135243@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010205112807.A42431>