From: "Jeff C," <nolongersafeto@userealemailsniff.com>
Subject: Re: profiler
Date: Fri, 24 Oct 2003 11:26:44 GMT
Date: 2003-10-24T11:26:44+00:00 [thread overview]
Message-ID: <U%7mb.17257$Tr4.35635@attbi_s03> (raw)
In-Reply-To: bnaqu6$519$2@news.uni-stuttgart.de
"Peter Hermann" <ica2ph@sinus.csv.ica.uni-stuttgart.de> wrote in message
news:bnaqu6$519$2@news.uni-stuttgart.de...
> please inform me about ways to profile an Ada program.
> A friend needs statistics on consumption of CPU-time and wall-clock-time
> of his Ada program system.
> Any info about methods and ready2use tools is welcome for me:
> ica2ph@csv.ica.uni-stuttgart.de
>
Depends on the platform/compiler,etc.
With GNAT/GCC technology just compile with
-g -pg -fprofile-arcs
When the program is over, run gprof
The output looks a little scary at first but it is actually quite useful..
I'll think about writing a tutorial later today but the man pages are pretty
good in this area.
Known Problems:
Statistical Profilers typically operate by interrupting the program at fixed
intervals and seeing who
is running. Typically these interrupt at rates like 50-100Hz which means
that you might need to run your
program multiple times and or loop over it for a while to get accurate
results
On Linux, I believe the profiler is somewhat broken in that it does not
really work well with threaded programs (and
thus not well with Ada tasking programs).
next prev parent reply other threads:[~2003-10-24 11:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-24 9:21 profiler Peter Hermann
2003-10-24 10:07 ` profiler Marius Amado Alves
2003-10-24 11:26 ` Jeff C, [this message]
2003-10-25 2:50 ` profiler Steve
2003-10-27 8:57 ` profiler Peter Hermann
2003-10-27 11:39 ` profiler Larry Kilgallen
2003-10-27 12:27 ` profiler Peter Hermann
2003-10-27 12:29 ` profiler Jeff C,
2003-10-27 13:35 ` profiler Larry Kilgallen
2003-10-27 12:00 ` profiler Jeff C,
2003-10-27 17:22 ` profiler Stephen Leake
2003-10-27 23:01 ` profiler Larry Kilgallen
-- strict thread matches above, loose matches on Subject: below --
2003-10-27 15:19 profiler Beard, Frank Randolph CIV
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox