From: "Bobby D. Bryant" <bdbryant@mail.utexas.edu>
Subject: Re: gprof with gnat
Date: Tue, 30 Apr 2002 22:06:38 -0600
Date: 2002-04-30T22:06:38-06:00 [thread overview]
Message-ID: <aanpmm$9td$1@geraldo.cc.utexas.edu> (raw)
In-Reply-To: 3CCD2328.C5722FC3@epfl.ch
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 4:06 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 [this message]
2002-05-01 6:11 ` Charles Fr. Rey
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