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,9888736260ba087 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.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, 01 Mar 2006 08:22:47 -0600 Date: Wed, 01 Mar 2006 09:19:26 -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: GNAT profiling References: <440559E8.7070209@mailinator.com> In-Reply-To: <440559E8.7070209@mailinator.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-QXXH3chn38IyA3y92gO+zm5+nej+xRRoJhlSphmI+1AYNArRDm3uCblyFCW0r7QUf9i/UNUd7/u65Ax!PPlw2riz7wkoBfF5+sSS21+GXWeTr9w7cDEMDL1u7TMcduHZSeLLDQbPFWhgOhZ1dUyDAZ/Jj5t8!E4s= 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: g2news1.google.com comp.lang.ada:3223 Date: 2006-03-01T09:19:26-05:00 List-Id: Alex R. Mosteo wrote: > Ok, after revising some old threads, I see there was a consensus in that > (at least linux) gprof doesn't work with multitasking programs, and > there were reports that it neither does with single-task programs. > > I'm thus musing what could be a (preferible free) option for code > profiling. I've successfully used valgrind for memory profiling, but for > now I'm DoD with this other aspect. > > Any suggestions welcome! I've certainly used gprof on single threaded programs and it worked fine (mostly under Solaris, but still quite a bit under Linux). One issue has been that for some versions of distribution shipped GCCs had pretty broken/bad or incompatible Ada/debug/gprof support. I know with CentOS 4 things are pretty broken. Might be interesting to look into oprofile support (might require a kernel rebuild).