Message-ID: <322F7DC3.2058@gbrmpa.gov.au> Date: Fri, 06 Sep 1996 09:26:27 +0800 From: Leath Muller Reply-To: leathm AT gbrmpa DOT gov DOT au MIME-Version: 1.0 To: Graham Sturmy CC: djgpp AT delorie DOT com Subject: Re: Profiling References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > Hi, I was wondering if there was a profiling utility for DJGPP (v2) > available. gprof... :) > I want to be able to find out where my C program is spending most of its > time. (On my hard disk isn't really the answer I want!) All you have to do is compile your program with -pg, then run it as usual, and then run gprof. AFAIK, this is in the FAQ!!!! (although I can't remember what section... ;) One thing about gprof I have noticed though, if your subroutine or whatever takes less than 0.0555... seconds to execute, gprof claims it takes no time whatsoever to execute. As it is now, I have a program that takes about 1/5 of a second to run, calling several routines several hundred times, and none of them take any time! :) Leathal.