comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Injecting trace code under GNAT
Date: Wed, 17 Jul 2013 11:15:19 +0300
Date: 2013-07-17T11:15:19+03:00	[thread overview]
Message-ID: <b4n24nFj697U1@mid.individual.net> (raw)
In-Reply-To: <07cb9baf-902c-4870-bfd1-aa8018e9d5c5@googlegroups.com>

On 13-07-17 10:33 , wrostek wrote:
> Hi forum,
> 
> I'm starting new to a fairly large GNAT project. 
> 
> Is the GNAT environment providing help to inject trace code
> on entry/exit of each subroutine? 
> 
> It doesn't matter if it is a one go over the whole codebase
> or by pre-processing prior to each compilation.
> 
> I need to hook into my own routines to optimize things for
> perfomance reasons. 

It seems that GNAT can be used with gprof:

http://gcc.gnu.org/onlinedocs/gcc-4.8.1/gnat_ugn_unw/Profiling-an-Ada-Program-using-gprof.html

For something more advanced, you could try the RapiTime tool,
http://www.rapitasystems.com/products/RapiTime.

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
      .      @       .

  parent reply	other threads:[~2013-07-17  8:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-17  7:33 Injecting trace code under GNAT wrostek
2013-07-17  8:00 ` Georg Bauhaus
2013-07-17  8:40   ` wrostek
2013-07-17  8:15 ` Niklas Holsti [this message]
2013-07-17 23:38 ` Randy Brukardt
2013-07-18  6:03 ` J-P. Rosen
2013-07-23  6:59 ` wrostek
2013-07-23 13:43   ` Marc C
2013-07-23 15:44     ` wrostek
2013-07-24  9:10       ` wrostek
replies disabled

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