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: a07f3367d7,3a6a9f1d654285ba X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!38g2000yqr.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: Ada Shootout program for K-Nucleotide (patches) Date: Thu, 3 Sep 2009 12:11:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4a743343$0$32674$9b4e6d93@newsspool2.arcor-online.net> <3f9f9e21-e088-4fbe-baac-dd43fdf6b911@r38g2000yqn.googlegroups.com> <4a757b0d$0$31328$9b4e6d93@newsspool4.arcor-online.net> <4a9fc85a$0$2850$ba620e4c@news.skynet.be> <1a5e1270-6a0a-4fff-a9b4-965abe610b69@o9g2000yqj.googlegroups.com> <4a9fdd46$0$2853$ba620e4c@news.skynet.be> NNTP-Posting-Host: 82.30.110.254 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1252005112 25392 127.0.0.1 (3 Sep 2009 19:11:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 3 Sep 2009 19:11:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 38g2000yqr.googlegroups.com; posting-host=82.30.110.254; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8134 Date: 2009-09-03T12:11:51-07:00 List-Id: On Sep 3, 4:13=A0pm, Olivier Scalbert wrote: > Ludovic Brenta wrote: > > You enabled front-end inlining with -gnatN; GNAT turned the whole > > program into one procedure. Even then, it should be possible to run > > the program under valgrind's callgrind tool to get accurate, per-line > > (indeed per-instruction) execution costs. I don't know whether gprof > > has such granularity or not. .. > Anyway with: > $ gnatmake -pg -f knucleotide.adb -o knucleotide.gnat_run You need -ftest-coverage -fprofile-arcs for gprof to give per-line coverage. Though not sure what it will do with really massive inlining! (our experience on PowerPC has been that inlining usually makes things worse - but that's for a large program with much logic, little maths)