delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/27/08:50:45

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <006601c12ef6$b40fa040$2f66323f@amr.corp.intel.com>
From: "Tim Prince" <tprince AT computer DOT org>
To: "Carsten Thorenz" <XZ550S AT gmx DOT de>, <cygwin AT cygwin DOT com>
References: <3790 DOT 998910256 AT www34 DOT gmx DOT net>
Subject: Re: Profiling with GPROF considered buggy?
Date: Mon, 27 Aug 2001 05:48:54 -0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Unless I am mistaken, cygwin doesn't include any libraries built with -pg.  When I wish to profile with g77, I build a copy of
libg2c with -pg as well as building all my code with -pg. When I profile numerical code built with gcc, I use a mathinline.h as well
as a few of my own math functions to avoid spending much time in the newlib libm.  I can't tell from your message which language you
are using or whether you expect all the time to be spent in your own -pg compiled code.
----- Original Message -----
From: "Carsten Thorenz" <XZ550S AT gmx DOT de>
To: <cygwin AT cygwin DOT com>
Sent: Monday, August 27, 2001 4:04 AM
Subject: Profiling with GPROF considered buggy?


> Hi!
>
> Recently I ran into problems profiling a scientific numerical program
> using Cygwin. I've seen in the list that other people had similar problems,
> but no clue was found.
>
> About my problems: I've compiled and linked the whole program with -pg,
> ran it and used gprof to to print the profile. Now about the strange things:
>
> The cumulative runtime in the "flat profile" is _way_ to small. The example
> I've used is running approximately 3 minutes, but only 15 seconds are
> recorded in the profile. The program doesn't do much communication
> with the outside world, it only crunches numbers during those 3 minutes.
> Furthermore, the functions that  I _know_ about using a lot of CPU-time
> are not even listed in the flat profile.
>
> The profiling works very fine with gcc on Linux and on OS/2, but
> it doesn't work for WinNT4. I've tried it with both Cygwin and
> Mingw, the problems are the same. So I guess it is not the external
> library that causes the problems, but the timing routines within gcc.
>
> My first guess: Are the timer intervals of the profiling to long, so
> that it doesn't "catch" functions which are executed very fast, but
> very often?
>
> Bye, Carsten
>
>
>
>
> --
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
>
>
>
> --
> 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/
>


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