Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: (OT) Profiling under gcc

Author: Sven Reichard

Date: 10:12:03 05/23/02

Go up one level in this thread


On May 22, 2002 at 20:38:44, Robert Hyatt wrote:
>
>
>I use 2.95.2 all the time and use -pg only.  No other options.  Note that
>not only do you compile with -pg but you must also link with the same option
>to get the right library.  Then just run the program and when you terminate it
>you should have a gmon.out file...  profview (or whatever you want to use such
>as gprof) should show you the details...

I know it worked under 2.95, but for some reason, RedHat included 2.96.2 in
their distribution, although this was an experimental version. I would downgrade
to 2.95, but some of the more exotic C++ features I used aren't supported in
that version -- e.g., some things related to templates. I downloaded 3.0.1 (13
meg thru a modem :-( ), but that didn't fix it. Maybe the problem lies somewhere
completely different...
Thanks anyway for your input.

BTW, I get the gmon.out, but what gprof makes of it doesn't make any sense.

Sven.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.