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-Thread: 103376,9e718c96a7961738 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Alfred Hilscher Newsgroups: comp.lang.ada Subject: Re: Profiling GNAT programs with gprof Date: Fri, 10 Jun 2005 11:49:33 +0200 Organization: none Message-ID: <42A9622D.60237DCE@alfred-hilscher.de> References: <42A5C785.CB651501@alfred-hilscher.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1118397273 04 31833 JgS8rC6JyQ+bSjEF 050610 09:54:33 X-Complaints-To: usenet-abuse@t-online.de X-ID: ThcGWsZv8es9wr4zHwaBMQt0ppfDYBhIy0IE5xavdcd4Hhi0xqiPEb X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de Xref: g2news1.google.com comp.lang.ada:11277 Date: 2005-06-10T11:49:33+02:00 List-Id: Thanks to all. It seems to me that profiling with gprof is not the best way, so I will look for other method to optimize my algorithms. Alfred Hilscher schrieb: > > Has someone experience with gprof and GNAT? It seem to work when I > profile sequential programs, but if I have tasks in my code then the > result of gprof seem invalid. E.g. a procedure called only three times > at all is listed as about 10000 calls. And while the over all runtime of > the prog is about 2 sec, gprof shows the consumed time for this > procedure with a few thousands seconds. > It looks like as if the statistik counters were not initialized. What > have I to do, to get correct results? > I use GNAT 3.15p and Windows 2000. > -- ----------------------------------------------------- To send me mail, please replace "Spam" by "Jedermann" -----------------------------------------------------