Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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