From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,280de4248570bb72 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 22 Nov 2006 09:52:57 -0600 Date: Wed, 22 Nov 2006 10:42:59 -0500 From: Jeffrey Creem User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Profiler? References: <1164207144.438846.201330@m73g2000cwd.googlegroups.com> In-Reply-To: <1164207144.438846.201330@m73g2000cwd.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <7o7e34-hcm.ln1@newserver.thecreems.com> NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-ZwYRyZfYGt0qurCTX2NeYbdYl2eCZDo1UN8BkSGDMeNcPX91gCO9CL8Eat5Wgyjtits3JrOmUCrm+uh!h0FI9JcVaT8oWTg2g5+0DCnaX3DoafS6sIIbpnwCN0kv8KpalchYvIhs8/B1mzs8zMqNtWiJL9Go!n40= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:7643 Date: 2006-11-22T10:42:59-05:00 List-Id: 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.