comp.lang.ada
 help / color / mirror / Atom feed
* Profiler?
@ 2006-11-22 14:52 Harald Korneliussen
  2006-11-22 15:42 ` Profiler? Jeffrey Creem
  0 siblings, 1 reply; 7+ messages in thread
From: Harald Korneliussen @ 2006-11-22 14:52 UTC (permalink / raw)


Does anyone know of a good profiler for programs written in Ada?




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

* Re: Profiler?
  2006-11-22 14:52 Profiler? Harald Korneliussen
@ 2006-11-22 15:42 ` Jeffrey Creem
  2006-11-22 16:34   ` Profiler? Alex R. Mosteo
  2006-11-24  7:45   ` Profiler? Harald Korneliussen
  0 siblings, 2 replies; 7+ messages in thread
From: Jeffrey Creem @ 2006-11-22 15:42 UTC (permalink / raw)


Harald Korneliussen wrote:
> Does anyone know of a good profiler for programs written in Ada?
> 

I usually just select the profiling options from the menu in the builder 
after ensuring the auxclock rate is what I expected.
.
.
.


Confused...So are we.

My response might make sense to someone using Greenhills Adamulti with a 
vxWorks target.

What compiler, OS, IDE, etc are you using?

If I try to make an assumption (and I could get this wrong) and assume 
by Ada you mean GNAT and then assume that perhaps you mean Linux I can 
say that gprof is actually an "ok" profiler. It is not great but it gets 
the job done.

If you make use of Ada tasking, you will run into the well known issue 
with gprof and threads under Linux (only the main program gets counted) 
but the workaround here

http://sam.zoy.org/writings/programming/gprof.html

works just fine (you build a shared library and then use LD_PRELOAD to 
wrap pthread_create as you execute your program.


Of course, I could have guessed wrong and perhaps you are using Rational 
Apex or some other compiler and or OS in which case this is not really 
going to be very helpful.



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

* Re: Profiler?
  2006-11-22 15:42 ` Profiler? Jeffrey Creem
@ 2006-11-22 16:34   ` Alex R. Mosteo
  2006-11-22 18:01     ` Profiler? Jeffrey Creem
  2006-11-24  7:45   ` Profiler? Harald Korneliussen
  1 sibling, 1 reply; 7+ messages in thread
From: Alex R. Mosteo @ 2006-11-22 16:34 UTC (permalink / raw)


Jeffrey Creem wrote:

> Harald Korneliussen wrote:
>> Does anyone know of a good profiler for programs written in Ada?

> If I try to make an assumption (and I could get this wrong) and assume
> by Ada you mean GNAT and then assume that perhaps you mean Linux I can
> say that gprof is actually an "ok" profiler. It is not great but it gets
> the job done.

Based in that same assumption, I've used successfully valgrind and
kcachegrind with nice results, also for multitasking programs. Oprofile was
in my list of things to look at that I never reached.



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

* Re: Profiler?
  2006-11-22 16:34   ` Profiler? Alex R. Mosteo
@ 2006-11-22 18:01     ` Jeffrey Creem
  2006-11-23  9:29       ` Profiler? Emmanuel Briot
  0 siblings, 1 reply; 7+ messages in thread
From: Jeffrey Creem @ 2006-11-22 18:01 UTC (permalink / raw)


Alex R. Mosteo wrote:
> Jeffrey Creem wrote:
> 
> 
>>Harald Korneliussen wrote:
>>
>>>Does anyone know of a good profiler for programs written in Ada?
> 
> 
>>If I try to make an assumption (and I could get this wrong) and assume
>>by Ada you mean GNAT and then assume that perhaps you mean Linux I can
>>say that gprof is actually an "ok" profiler. It is not great but it gets
>>the job done.
> 
> 
> Based in that same assumption, I've used successfully valgrind and
> kcachegrind with nice results, also for multitasking programs. Oprofile was
> in my list of things to look at that I never reached.


Thanks for the reminder. Since a lot of my work is still Sparc Solaris 
based I always forget to mention valgrind.

The combination of valgrind and kacachegrind is actually quite powerful 
and pr(though large programs do tend to run quite slowly under valgrind).

I also toyed with oprofile a while back and did not find it as useful 
(in the case I was working with) as valgrind/kcachegrind but I did not 
spend enough time with it to be sure.





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

* Re: Profiler?
  2006-11-22 18:01     ` Profiler? Jeffrey Creem
@ 2006-11-23  9:29       ` Emmanuel Briot
  2006-11-23  9:57         ` Profiler? Alex R. Mosteo
  0 siblings, 1 reply; 7+ messages in thread
From: Emmanuel Briot @ 2006-11-23  9:29 UTC (permalink / raw)


>>>If I try to make an assumption (and I could get this wrong) and assume
>>>by Ada you mean GNAT and then assume that perhaps you mean Linux I can
>>>say that gprof is actually an "ok" profiler. It is not great but it gets
>>>the job done.
>> 
>> 
>> Based in that same assumption, I've used successfully valgrind and
>> kcachegrind with nice results, also for multitasking programs. Oprofile
>> was in my list of things to look at that I never reached.

One additional one which I find even more convenient is sysprof on linux,
since it will monitor the whole system, you can start it whenever you want
(ie you don't have to profile since the startup of your application), and
has a nice GUI to examine the results



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

* Re: Profiler?
  2006-11-23  9:29       ` Profiler? Emmanuel Briot
@ 2006-11-23  9:57         ` Alex R. Mosteo
  0 siblings, 0 replies; 7+ messages in thread
From: Alex R. Mosteo @ 2006-11-23  9:57 UTC (permalink / raw)


Emmanuel Briot wrote:

> One additional one which I find even more convenient is sysprof on linux,
> since it will monitor the whole system, you can start it whenever you want
> (ie you don't have to profile since the startup of your application), and
> has a nice GUI to examine the results

I wasn't aware of this one. Looks very promising! The concept seems similar
to oprofile...



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

* Re: Profiler?
  2006-11-22 15:42 ` Profiler? Jeffrey Creem
  2006-11-22 16:34   ` Profiler? Alex R. Mosteo
@ 2006-11-24  7:45   ` Harald Korneliussen
  1 sibling, 0 replies; 7+ messages in thread
From: Harald Korneliussen @ 2006-11-24  7:45 UTC (permalink / raw)



Jeffrey Creem skrev:
> Confused...So are we.

Not at all, I think it's interesting. I could perhaps have been more
specific, but the things you have mentioned in this thread are just
what I tried to ask for.




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

end of thread, other threads:[~2006-11-24  7:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-22 14:52 Profiler? Harald Korneliussen
2006-11-22 15:42 ` Profiler? Jeffrey Creem
2006-11-22 16:34   ` Profiler? Alex R. Mosteo
2006-11-22 18:01     ` Profiler? Jeffrey Creem
2006-11-23  9:29       ` Profiler? Emmanuel Briot
2006-11-23  9:57         ` Profiler? Alex R. Mosteo
2006-11-24  7:45   ` Profiler? Harald Korneliussen

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