Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <200303121449.h2CEndUH187268@pimout4-ext.prodigy.net> Content-Type: text/plain; charset="iso-8859-1" From: Tim Prince Reply-To: tprince AT computer DOT org To: "Elfyn McBratney" , "cygwin" , "Manik, Raina \(IE10\)" Subject: Re: profilers for cygwin Date: Wed, 12 Mar 2003 06:49:38 -0800 References: <006d01c2e867$b165ceb0$745686d9 AT webdev> In-Reply-To: <006d01c2e867$b165ceb0$745686d9@webdev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Tuesday 11 March 2003 23:19, Elfyn McBratney wrote: > > A quick question, is there a profiler available on cygwin ? > > Even a primitive one will do. Please cc: me on the reply since > > i'm not on the list. I've looked this up through google but > > to no avail... > > If you have binutils installed, then the answer is yes :-) If not install > the binutils package via setup.exe and your ready to go. > > The profiler is called gprof, but before you are able to use it you'll need > to make sure that the binaries that you want to profile support the > profileing mechanism. When you compile a binary just specify yhe `-pg' > option to g{cc,++,77} (in addition to the options you normally use to > compile) and this will amke sure that you new compiled binary contains the > needed data. In order to use -pg with g77 in cygwin, you must supply your own -pg built copy of at least main() from libf2c, but preferably the entire libg2c. Switching in -pg library support for g77 isn't automatic in cygwin, as it is in glibc. Even so, availability of -pg is a tremendous advantage in the Windows world. > > For help with the profiler take a look at the man page `man 1 gprof' also > there is a vast amount of documents/tutorials on the web. A google for > "gprof" returned tones of results. > > > Regards, > > Elfyn McBratney > elfyn AT exposure DOT org DOT uk > www.exposure.org.uk -- Tim Prince -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/