gprof granularity of output

2001-02-05 Thread Lev Serebryakov

Hello hackers,

  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...

-- 
Best regards,
 Lev  mailto:[EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: gprof granularity of output

2001-02-05 Thread David Malone

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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message