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 01:40:00 PST
Path:
archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.icl.net!opentransit.net!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: gprof with gnat
Date: 01 May 2002 10:40:01 +0200
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References: <3CCD2328.C5722FC3@epfl.ch>
NNTP-Posting-Host: avelizy-103-1-3-139.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: wanadoo.fr 1020242400 1325 217.128.47.139 (1 May 2002 08:40:00 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 1 May 2002 08:40:00 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
Xref: archiver1.google.com comp.lang.ada:23321
Date: 2002-05-01T08:40:00+00:00
List-Id:
"Bobby D. Bryant" writes:
> 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
This is not gprof (profiling tool) arguments but gcov ones (a test coverage
tool).
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"