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,FREEMAIL_FROM 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!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: GNAT profiling Date: Wed, 01 Mar 2006 15:48:03 +0100 Message-ID: <4405B423.1030205@mailinator.com> References: <440559E8.7070209@mailinator.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 70DX76m6/K/yMeHL9IoCIAggPqfR2bu4TEROclmpfXq4F7yAI= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:3225 Date: 2006-03-01T15:48:03+01:00 List-Id: Jeffrey Creem wrote: > 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). Thanks ldb and Jeffrey for pointing me to this profiler, certainly seems very promising and, according to the webpage, doesn't require kernel recompilation but just installing a module. I will post my experience with it after trying.