comp.lang.ada
 help / color / mirror / Atom feed
* profiler
@ 2003-10-24  9:21 Peter Hermann
  2003-10-24 10:07 ` profiler Marius Amado Alves
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Peter Hermann @ 2003-10-24  9:21 UTC (permalink / raw)


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

-- 
--Peter Hermann(49)0711-685-3611 fax3758 ica2ph@csv.ica.uni-stuttgart.de
--Pfaffenwaldring 27 Raum 114, D-70569 Stuttgart Uni Computeranwendungen
--http://www.csv.ica.uni-stuttgart.de/homes/ph/
--Team Ada: "C'mon people let the world begin" (Paul McCartney)



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: profiler
  2003-10-24  9:21 profiler Peter Hermann
@ 2003-10-24 10:07 ` Marius Amado Alves
  2003-10-24 11:26 ` profiler Jeff C,
  2003-10-25  2:50 ` profiler Steve
  2 siblings, 0 replies; 13+ messages in thread
From: Marius Amado Alves @ 2003-10-24 10:07 UTC (permalink / raw)
  To: Peter Hermann; +Cc: comp.lang.ada

On Fri, 2003-10-24 at 09:21, Peter Hermann wrote:
> 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.

Linux as a command "time" that gives this. When I need to measure parts
of the program I instrument it using Ada.Calendar et al. (There are
thousands of examples on this list. Search for "Clock", "Duration",
"Ada.Calendar".)




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: profiler
  2003-10-24  9:21 profiler Peter Hermann
  2003-10-24 10:07 ` profiler Marius Amado Alves
@ 2003-10-24 11:26 ` Jeff C,
  2003-10-25  2:50 ` profiler Steve
  2 siblings, 0 replies; 13+ messages in thread
From: Jeff C, @ 2003-10-24 11:26 UTC (permalink / raw)



"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).





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: profiler
  2003-10-24  9:21 profiler Peter Hermann
  2003-10-24 10:07 ` profiler Marius Amado Alves
  2003-10-24 11:26 ` profiler Jeff C,
@ 2003-10-25  2:50 ` Steve
  2003-10-27  8:57   ` profiler Peter Hermann
  2 siblings, 1 reply; 13+ messages in thread
From: Steve @ 2003-10-25  2:50 UTC (permalink / raw)


What compiler?
What OS?

Steve
(The Duck)

"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
>
> -- 
> --Peter Hermann(49)0711-685-3611 fax3758 ica2ph@csv.ica.uni-stuttgart.de
> --Pfaffenwaldring 27 Raum 114, D-70569 Stuttgart Uni Computeranwendungen
> --http://www.csv.ica.uni-stuttgart.de/homes/ph/
> --Team Ada: "C'mon people let the world begin" (Paul McCartney)





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: profiler
  2003-10-25  2:50 ` profiler Steve
@ 2003-10-27  8:57   ` Peter Hermann
  2003-10-27 11:39     ` profiler Larry Kilgallen
                       ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Peter Hermann @ 2003-10-27  8:57 UTC (permalink / raw)


Steve <nospam_steved94@comcast.net> wrote:
> What compiler?
> What OS?

not specific (portable project).  we have different possibilities.

> Steve
> (The Duck)

>> Any info about methods and ready2use tools is welcome for me:
--Peter Hermann(49)0711-685-3611 fax3758 ica2ph@csv.ica.uni-stuttgart.de



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: profiler
  2003-10-27  8:57   ` profiler Peter Hermann
@ 2003-10-27 11:39     ` Larry Kilgallen
  2003-10-27 12:27       ` profiler Peter Hermann
  2003-10-27 12:00     ` profiler Jeff C,
  2003-10-27 17:22     ` profiler Stephen Leake
  2 siblings, 1 reply; 13+ messages in thread
From: Larry Kilgallen @ 2003-10-27 11:39 UTC (permalink / raw)


In article <bnimmd$8p1$1@news.uni-stuttgart.de>, Peter Hermann <ica2ph@sinus.csv.ica.uni-stuttgart.de> writes:
> Steve <nospam_steved94@comcast.net> wrote:
>> What compiler?
>> What OS?
> 
> not specific (portable project).  we have different possibilities.

Well, on VMS you would use the Performance and Coverage Analyzer.

(I make that comment based entirely on what is above, not on any
context from the original post that may have been eliminated in
the quoting.)



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: profiler
  2003-10-27  8:57   ` profiler Peter Hermann
  2003-10-27 11:39     ` profiler Larry Kilgallen
@ 2003-10-27 12:00     ` Jeff C,
  2003-10-27 17:22     ` profiler Stephen Leake
  2 siblings, 0 replies; 13+ messages in thread
From: Jeff C, @ 2003-10-27 12:00 UTC (permalink / raw)



"Peter Hermann" <ica2ph@sinus.csv.ica.uni-stuttgart.de> wrote in message
news:bnimmd$8p1$1@news.uni-stuttgart.de...
> Steve <nospam_steved94@comcast.net> wrote:
> > What compiler?
> > What OS?
>
> not specific (portable project).  we have different possibilities.
>

I do not think there is a profiler for the Meridian Mac OS 6.x Ada 83
compiler....But you probably
don't care that much about that.

I think the profiler on the xyz compiler for the pqr OS is not Y2k
compliant. Make sure
you press f6 when it launches...

Does this sound like useless drivel...It is..You can not expect useful
comments about the availability
and features of something like a profiler (which is outside of the language
standard for Ada, C++, C, Java, etc)
without defining the OS and compiler.

That said, every Ada compiler I have used over the last 13 years (ok with
the exception of that Meridian one) had
a profiler (and maybe even the meridan worked with the MPW profiler...not
really sure)..





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: profiler
  2003-10-27 11:39     ` profiler Larry Kilgallen
@ 2003-10-27 12:27       ` Peter Hermann
  2003-10-27 12:29         ` profiler Jeff C,
  2003-10-27 13:35         ` profiler Larry Kilgallen
  0 siblings, 2 replies; 13+ messages in thread
From: Peter Hermann @ 2003-10-27 12:27 UTC (permalink / raw)


Larry Kilgallen <Kilgallen@spamcop.net> wrote:
> Well, on VMS you would use the Performance and Coverage Analyzer.

thank you for your hint.
yes, that would be first choice 
however VMS-Ada has been freezed at Ada83, AFAIK.

-- 
--Peter Hermann(49)0711-685-3611 fax3758 ica2ph@csv.ica.uni-stuttgart.de
--Pfaffenwaldring 27 Raum 114, D-70569 Stuttgart Uni Computeranwendungen
--http://www.csv.ica.uni-stuttgart.de/homes/ph/
--Team Ada: "C'mon people let the world begin" (Paul McCartney)



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: profiler
  2003-10-27 12:27       ` profiler Peter Hermann
@ 2003-10-27 12:29         ` Jeff C,
  2003-10-27 13:35         ` profiler Larry Kilgallen
  1 sibling, 0 replies; 13+ messages in thread
From: Jeff C, @ 2003-10-27 12:29 UTC (permalink / raw)



"Peter Hermann" <ica2ph@sinus.csv.ica.uni-stuttgart.de> wrote in message
news:bnj30e$njj$1@news.uni-stuttgart.de...
> Larry Kilgallen <Kilgallen@spamcop.net> wrote:
> > Well, on VMS you would use the Performance and Coverage Analyzer.
>
> thank you for your hint.
> yes, that would be first choice
> however VMS-Ada has been freezed at Ada83, AFAIK.
>


Unless you want OpenVMS

http://www.gnat.com/texts/products/prod_openvms.htm





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: profiler
  2003-10-27 12:27       ` profiler Peter Hermann
  2003-10-27 12:29         ` profiler Jeff C,
@ 2003-10-27 13:35         ` Larry Kilgallen
  1 sibling, 0 replies; 13+ messages in thread
From: Larry Kilgallen @ 2003-10-27 13:35 UTC (permalink / raw)


In article <bnj30e$njj$1@news.uni-stuttgart.de>, Peter Hermann <ica2ph@sinus.csv.ica.uni-stuttgart.de> writes:
> Larry Kilgallen <Kilgallen@spamcop.net> wrote:
>> Well, on VMS you would use the Performance and Coverage Analyzer.
> 
> thank you for your hint.
> yes, that would be first choice 
> however VMS-Ada has been freezed at Ada83, AFAIK.

HP cooperates with ACT for support of GNAT on Alpha VMS.

One would hope that would extend to interoperation with the Performance
and Coverage Analyzer.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: profiler
@ 2003-10-27 15:19 Beard, Frank Randolph CIV
  0 siblings, 0 replies; 13+ messages in thread
From: Beard, Frank Randolph CIV @ 2003-10-27 15:19 UTC (permalink / raw)
  To: comp.lang.ada

For Performance testing on Windows, there is Intel's VTune
Performance Analyzer. It lists C/C++, Fortran, Java, Visual
Basic, and ASM as it's supported languages, but it works
with Ada as well.  I forget what we paid for Version 5.0.
I think it was in the $200 - $300 price range.

Frank

-----Original Message-----
From: Peter Hermann [mailto:ica2ph@sinus.csv.ica.uni-stuttgart.de]

Steve <nospam_steved94@comcast.net> wrote:
> What compiler?
> What OS?

not specific (portable project).  we have different possibilities.

> Steve
> (The Duck)

>> Any info about methods and ready2use tools is welcome for me:
--Peter Hermann(49)0711-685-3611 fax3758 ica2ph@csv.ica.uni-stuttgart.de



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: profiler
  2003-10-27  8:57   ` profiler Peter Hermann
  2003-10-27 11:39     ` profiler Larry Kilgallen
  2003-10-27 12:00     ` profiler Jeff C,
@ 2003-10-27 17:22     ` Stephen Leake
  2003-10-27 23:01       ` profiler Larry Kilgallen
  2 siblings, 1 reply; 13+ messages in thread
From: Stephen Leake @ 2003-10-27 17:22 UTC (permalink / raw)


Peter Hermann <ica2ph@sinus.csv.ica.uni-stuttgart.de> writes:

> Steve <nospam_steved94@comcast.net> wrote:
> > What compiler?
> > What OS?
> 
> not specific (portable project).  we have different possibilities.

The Gnu toolset provides a profiler. The Gnu toolset (including GNAT)
is portable to most interesting operating systems, so that's probably
your best bet.

But why are you profiling a non-specific compiler? Profiling is only
necessary when you have a performance problem; clearly you don't,
since you don't have specific requirements.

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: profiler
  2003-10-27 17:22     ` profiler Stephen Leake
@ 2003-10-27 23:01       ` Larry Kilgallen
  0 siblings, 0 replies; 13+ messages in thread
From: Larry Kilgallen @ 2003-10-27 23:01 UTC (permalink / raw)


In article <uptgid292.fsf@nasa.gov>, Stephen Leake <Stephe.Leake@nasa.gov> writes:

> But why are you profiling a non-specific compiler? Profiling is only
> necessary when you have a performance problem;

Profiling to let you know how much time is spent in various routines
and shareable images can be used to characterize a workload, when one
does not have better tools.



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-10-27 23:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-27 15:19 profiler Beard, Frank Randolph CIV
  -- strict thread matches above, loose matches on Subject: below --
2003-10-24  9:21 profiler Peter Hermann
2003-10-24 10:07 ` profiler Marius Amado Alves
2003-10-24 11:26 ` profiler Jeff C,
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox