delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/12/02:17:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <006d01c2e867$b165ceb0$745686d9@webdev>
From: "Elfyn McBratney" <elfyn-cygwin AT exposure DOT org DOT uk>
To: "cygwin" <cygwin AT cygwin DOT com>,
"Manik, Raina \(IE10\)" <Manik DOT Raina AT honeywell DOT com>
References: <CDDB93E84A8DD411B01900D0B78278400F2E24DF AT IE10-SAHARA>
Subject: Re: profilers for cygwin
Date: Wed, 12 Mar 2003 07:19:12 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

> 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.

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



--
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/

- Raw text -


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