From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,84be9c5a380874d5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-01 10:18:30 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: gprof with gnat Date: 1 May 2002 10:18:30 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0205010918.54601f2c@posting.google.com> References: <3CCD2328.C5722FC3@epfl.ch> <3CCE6DF1.46B5450E@epfl.ch> <4519e058.0204300558.49ff7b08@posting.google.com> <17cd177c.0204301131.63213cc2@posting.google.com> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1020273510 15087 127.0.0.1 (1 May 2002 17:18:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 1 May 2002 17:18:30 GMT Xref: archiver1.google.com comp.lang.ada:23354 Date: 2002-05-01T17:18:30+00:00 List-Id: gautier_niouzes@hotmail.com (Gautier) wrote in message news:<17cd177c.0204301131.63213cc2@posting.google.com>... > > I attempted to use it on Windows about a year ago, with rather rotten > > luck. Most of the problems stem from the fact that Gnat doesn't use > > the latest gcc, and thus you can't use the latest gprof. Hopefully > > this problem will go away with gcc 3.1. > > What are the problems ? > At least my small experiments with gprof (provided with GNAT 3.13p for > Windows) do run well... > E.g. by profiling the Unzip-Ada tool (trying to analyse the slow > I/Os). It took quite a while to get hold of a properly linked gprof, as most of the ones out there use the newer version of gcc's libraries, which are incompatable with the current public versions of gnat (or at least were at the time). It took quite a bit of searching to find the proper gprof. That was the hard part. I finally did get some useful results, but as I remember some of the gprof options were not working properly (I'd get no data). Of course profilers are notoriously tricky to use, so I could easly have been *correctly* getting no data. But I was able to get data with the same options on Solaris... -- T.E.D. Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison) Homepage - http://www.telepath.com/dennison/Ted/TED.html