www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/15/14:35:27

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

JSONCRAIG AT aol DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019