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-04-30 21:15:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cyclone.bc.net!arclight.uoregon.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!not-for-mail From: "Bobby D. Bryant" Newsgroups: comp.lang.ada Subject: Re: gprof with gnat Date: Tue, 30 Apr 2002 22:06:38 -0600 Organization: dis- Message-ID: References: <3CCD2328.C5722FC3@epfl.ch> NNTP-Posting-Host: dial-51-45.ots.utexas.edu Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: geraldo.cc.utexas.edu 1020226070 10157 128.83.113.141 (1 May 2002 04:07:50 GMT) X-Complaints-To: abuse@utexas.edu NNTP-Posting-Date: Wed, 1 May 2002 04:07:50 +0000 (UTC) User-Agent: Pan/0.11.3 (Unix) X-Comment-To: "Charles Fr. Rey" Xref: archiver1.google.com comp.lang.ada:23313 Date: 2002-04-30T22:06:38-06:00 List-Id: On Mon, 29 Apr 2002 04:40:40 -0600, Charles Fr. Rey wrote: > Anyone knows how to use gprof with gnat (linux version) ? I was able > to use it on solaris, but not on my home computer ... I'm not very expert with gprof, but I tried it last fall and didn't seem to have any problems. I use Linux and GNAT. Here are some notes I made at the time: o Comments in the source file for a jacket program, profile.adb, that I wrote to drive a GA "solver" for the profiling - -- This is useful for testing for memory leaks in the solver: -- gnatmake profile -- gnatmem 5 ./profile -- -- Also useful for optimizing the solver: -- make profile -- ./profile -- gcov profile.adb -- emacs profile.adb.gcov -- n.b. -- you can also run gcov on files that profile.adb depends on. o A snippet from my Makefile - # For use w/ the gcov profiler: profile: realclean gnatmake -g profile \ -cargs -fprofile-arcs -ftest-coverage \ -bargs -C -largs -C Hopefully that will be enough to get you started. Good luck, Bobby Bryant Austi, Texas