delorie.com/archives/browse.cgi | search |
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: | <000901c11990$c23c47c0$a76dfdcf@lambda> |
From: | "Francois Colbert" <francois DOT colbert AT videotron DOT ca> |
To: | "Tim Prince" <tprince AT computer DOT org>, <cygwin AT cygwin DOT com> |
References: | <000701c1158b$4ab07400$59cdfdcf AT lambda> <003b01c1158f$f8281e90$9865fea9 AT timayum4srqln4> |
Subject: | Re: gprof prints incorrect results |
Date: | Tue, 31 Jul 2001 03:16:45 -0400 |
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 |
Tim Prince wrote: > I expect this would be improved if you built the entire run-time > library with -pg. The cygwin setup doesn't provide for > automatically linking a profiling version of the run-time. A > possible work-around is to build a separate copy of the run-time > libraries and link specifically against those libraries. I think I shouldn't have to do this. First, I don't need to do that with the Linux version, so I don't see why it should be different on a Windows version. Second, I don't want profiling information for the run-time library. Here is an relevant excerpt of the gprof documentation: If you compile only some of the modules of the program with `-pg', you can still profile the program, but you won't get complete information about the modules that were compiled without `-pg'. > Recursive calling will be "spontaneous" no matter what > you do. Sorry to ask it that way but, did you really look at my example? It doesn't contain any recursive function, and it should be clear that the DoSomething function doesn't use the run-time library, yet it's still missing from the index. I also had profiling outputs in which almost all the index was missing (except for the title) for a program containing thousands of functions. This is clearly not expected. I'll try to debug it myself. If someone has any hint about the source of the problem, please let me know. And if someone out there really obtained a useful (and complete) output from Cygwin's gprof, please let me know too. It could also be useful if you just tried my test on your own system. Thanks. fc Ref: http://www.cygwin.com/ml/cygwin/2001-07/msg01477.html -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |