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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a0ff1df3c152ae8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-15 12:38:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT and profiling! Date: 15 Nov 2001 20:32:43 +0000 Organization: Pushface Message-ID: References: <3BF22DF1.B59AC367@ida.his.se> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 1005856647 nnrp-12:17641 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 15 Nov 2001 20:32:43 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:16590 Date: 2001-11-15T20:32:43+00:00 List-Id: Michael Andersson writes: > Hi! > I want to use gcov to profile my code. The problem is that I want to > compare one version of a program with a new version of the program to > see weather or not I gained some performace. But from what I can se gcov > counts how many times each line of code was executed. This would mean > that each version would have to be executed an equal amount of time. I > could use a counter for each function an print the contents of the > counter each frame and then compare it the output from the other version > of the program. This could become quite an effort since there are a lot > of functions to compare. > > Could I in some way use gcov to do this? I would have thought gprof would do better?