Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-Id: <199911151934.NAA06145@mercury.xraylith.wisc.edu>
To: JSONCRAIG@aol.com
cc: cygwin@sourceware.cygnus.com
Subject: Re: more problems with gprof 
In-Reply-To: Your message of "Fri, 12 Nov 1999 16:40:14 EST."
             <0.51b99ea6.255de33e@aol.com> 
Date: Mon, 15 Nov 1999 13:34:52 -0600
From: Mumit Khan <khan@thor.xraylith.wisc.edu>

JSONCRAIG@aol.com writes:
> Are -pg and gprof fully implemented in Mingw32?  I tried to profile a simple 
> C program (compiling/linking with -pg, running it, running gprof) and it 
> always says no time accumulated and 0% of the programs running time was spent
>  
> in each function on the call graph.  Now, I know this can't be right because 
> they were all called multiple times.  

As always, please send me a testcase if you want me to look at it. The
implementation of gprof is pretty complete, but there may be a priority
issue for the thread that actually does the profiling. I'll see if up'ing
the thread priority will fix your problem or not.

> gprof -i test.exe returns:
> File `gmon.out' (version 0) contains:
>         3 histogram record
>         1 call-graph record
>         0 basic-block count records <----- is this the problem?
> 
> Is it fully implemented or am I doing something wrong?

This looks ok to me. You should look at gcc's docs for profiling options
(not just -pg, but also a few others there as well), and docs for gprof
(I just realized that I missed the gprof docs in my distribution, but
you can get those online at http://www.delorie.com/ and many other
places). 

   Linkname: GNU gprof - Table of Contents
   URL: http://www.delorie.com/gnu/docs/binutils/gprof_toc.html

> 
> Thanks,
> Jason Craig
> 

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

