From: "Charles Fr. Rey" <charlesfr.rey@epfl.ch>
Subject: Re: gprof with gnat
Date: Wed, 01 May 2002 08:11:14 +0200
Date: 2002-05-01T08:11:14+02:00 [thread overview]
Message-ID: <3CCF8702.A7537851@epfl.ch> (raw)
In-Reply-To: aanpmm$9td$1@geraldo.cc.utexas.edu
gnatmake -g profile etc... it seems that's the missing thing .. I was
used to use it on solaris, and you MUST add -largs path/gprof.o, no more
...
Thanks, next time i'll read the whole documentation !
"Bobby D. Bryant" wrote:
>
> 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
next prev parent reply other threads:[~2002-05-01 6:11 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-29 10:40 gprof with gnat Charles Fr. Rey
2002-04-30 6:37 ` Eric G. Miller
2002-04-30 10:10 ` Charles Fr. Rey
2002-04-30 10:12 ` Charles Fr. Rey
2002-04-30 13:58 ` Ted Dennison
2002-04-30 19:31 ` Gautier
2002-05-01 17:18 ` Ted Dennison
2002-05-01 12:30 ` Robert Dewar
2002-05-01 17:49 ` Ted Dennison
2002-05-01 4:06 ` Bobby D. Bryant
2002-05-01 6:11 ` Charles Fr. Rey [this message]
2002-05-01 12:33 ` Robert Dewar
2002-05-01 18:23 ` Bad reply practice (OT) Chad R. Meiners
2002-05-03 8:46 ` Robert Dewar
2002-05-02 6:49 ` gprof with gnat Charles Fr. Rey
2002-05-02 11:53 ` Robert Dewar
2002-05-02 14:18 ` [OT] ettiquite - was " Mark Johnson
2002-05-02 17:34 ` Ted Dennison
2002-05-03 8:41 ` Robert Dewar
2002-05-03 13:22 ` Hyman Rosen
2002-05-04 1:53 ` Robert Dewar
2002-05-07 15:08 ` Bobby D. Bryant
2002-05-08 2:29 ` Robert Dewar
2002-05-03 7:09 ` Charles Fr. Rey
2002-05-03 12:01 ` Larry Kilgallen
2002-05-04 2:07 ` Robert Dewar
2002-05-03 12:24 ` Jean-Marc Bourguet
2002-05-05 20:40 ` cfrey
2002-05-06 14:14 ` Stephen Leake
2002-05-09 17:43 ` Marin David Condic
2002-05-10 22:20 ` Stephen Leake
2002-05-06 15:41 ` Wes Groleau
2002-05-07 11:53 ` Charles Fr. Rey
2002-05-07 17:12 ` WAY OFF TOPIC Wes Groleau
2002-05-07 19:03 ` Preben Randhol
2002-05-08 8:47 ` Charles Fr. Rey
2002-05-01 8:40 ` gprof with gnat Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox