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,f03ffdf470e3c559 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Interesting performance quirk. Followup-To: comp.lang.ada Date: Wed, 29 Oct 2008 10:54:10 +0100 Message-ID: <6mqq6eFi32r1U1@mid.individual.net> References: <4903c066$0$28676$4d3efbfe@news.sover.net> <49045079$0$28711$4d3efbfe@news.sover.net> <4906f908$0$5781$4d3efbfe@news.sover.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: individual.net xi38V9liet3zeanZoxxEFgoRuuKR17ZlPwgwT/xwRh8j730Ys= Cancel-Lock: sha1:PM40ATcKybSbcLK85/oXMTk72jA= User-Agent: KNode/0.99.01 Xref: g2news2.google.com comp.lang.ada:8247 Date: 2008-10-29T10:54:10+01:00 List-Id: Peter C. Chapin wrote: > I tried running gprof over my code to see what I could learn, but I > don't know how to use that tool very well yet so I didn't learn much. I > discovered that a certain procedure is called a HUGE number of times, > but that's not unexpected considering where it's used. It's a small > procedure so I might try inlining it. I'd also recomend valgrind with, e.g., kcachegrind to visualize the results. It might be easier to get into than gprof, and doesn't require special parameters to build the executable.