From: Carsten Thorenz <XZ550S@gmx.de>
To: cygwin@cygwin.com
Subject: Profiling with GPROF considered buggy?
Date: Mon, 27 Aug 2001 04:04:00 -0000 [thread overview]
Message-ID: <3790.998910256@www34.gmx.net> (raw)
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/
next reply other threads:[~2001-08-27 4:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-27 4:04 Carsten Thorenz [this message]
2001-08-27 5:49 ` Tim Prince
2001-08-27 6:37 Carsten Thorenz
2001-08-27 14:49 ` Tim Prince
2001-08-28 0:28 Carsten Thorenz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3790.998910256@www34.gmx.net \
--to=xz550s@gmx.de \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).